home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / HyperCard / MagMaker 1.0 / MagMaker Tools A < prev    next >
MacBinary  |  1994-01-29  |  82.4 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Sun Sep 12 18:28:09 1993, modified Sat Jan 29 10:41:41 1994, creator HyperCard, type HyperCard stack, 73728 bytes "MagMaker Tools A" , at 0x12080 10420 bytes resource default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 4d 61 67 4d 61 6b | 65 72 20 54 6f 6f 6c 73 |..MagMak|er Tools|
|00000010| 20 41 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | A......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 01 20 00 00 | 00 28 b4 a8 b9 52 f9 a9 |..... ..|.(...R..|
|00000060| 70 34 35 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |p45.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b3 24 00 00 |........|.....$..|
|00000080| 00 00 70 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..p.STAK|........|
|00000090| 00 00 00 0a 00 01 20 00 | 00 00 70 00 00 00 00 00 |...... .|..p.....|
|000000a0| 00 00 00 00 00 00 00 01 | 00 00 0a 20 00 00 00 01 |........|... ....|
|000000b0| 00 00 0b 8a 00 00 08 c7 | 00 00 00 02 00 00 10 c0 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 05 00 00 10 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 10 80 00 | 02 10 80 00 02 20 80 00 |........|..... ..|
|000000f0| de 95 01 a8 00 00 00 00 | 00 50 00 80 01 68 02 00 |........|.P...h..|
|00000100| 00 00 00 00 01 90 02 80 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d e7 00 00 0c 82 | 01 18 01 80 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 e3 60 00 00 08 e0 | 00 01 18 00 00 00 07 e0 |...`....|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 6f 6e 20 75 70 64 61 74 | 65 54 65 78 74 0d 70 75 |on updat|eText.pu|
|00000690| 74 20 74 68 65 20 73 65 | 6c 65 63 74 65 64 54 65 |t the se|lectedTe|
|000006a0| 78 74 20 69 6e 74 6f 20 | 77 68 61 74 54 65 78 74 |xt into |whatText|
|000006b0| 0d 64 6f 55 70 64 61 74 | 65 20 77 68 61 74 54 65 |.doUpdat|e whatTe|
|000006c0| 78 74 0d 65 6e 64 20 75 | 70 64 61 74 65 54 65 78 |xt.end u|pdateTex|
|000006d0| 74 0d 0d 6f 6e 20 6f 70 | 65 6e 43 61 72 64 0d 69 |t..on op|enCard.i|
|000006e0| 66 20 74 6f 6f 6c 73 53 | 74 61 63 6b 28 29 20 74 |f toolsS|tack() t|
|000006f0| 68 65 6e 20 65 78 69 74 | 20 6f 70 65 6e 43 61 72 |hen exit| openCar|
|00000700| 64 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |d.if the|re is a |
|00000710| 6d 65 6e 75 20 22 4d 61 | 67 4d 61 6b 65 72 22 20 |menu "Ma|gMaker" |
|00000720| 74 68 65 6e 0d 69 66 20 | 74 68 65 20 68 69 67 68 |then.if |the high|
|00000730| 4c 69 67 68 74 20 6f 66 | 20 62 67 20 62 74 6e 20 |Light of| bg btn |
|00000740| 22 4c 6f 63 6b 50 61 67 | 65 22 20 74 68 65 6e 0d |"LockPag|e" then.|
|00000750| 73 65 74 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |set the |name of |
|00000760| 6d 65 6e 75 49 74 65 6d | 20 31 30 20 6f 66 20 6d |menuItem| 10 of m|
|00000770| 65 6e 75 20 22 4d 61 67 | 4d 61 6b 65 72 22 20 74 |enu "Mag|Maker" t|
|00000780| 6f 20 22 55 6e 6c 6f 63 | 6b 20 50 61 67 65 22 0d |o "Unloc|k Page".|
|00000790| 65 6c 73 65 0d 73 65 74 | 20 74 68 65 20 6e 61 6d |else.set| the nam|
|000007a0| 65 20 6f 66 20 6d 65 6e | 75 49 74 65 6d 20 31 30 |e of men|uItem 10|
|000007b0| 20 6f 66 20 6d 65 6e 75 | 20 22 4d 61 67 4d 61 6b | of menu| "MagMak|
|000007c0| 65 72 22 20 74 6f 20 22 | 4c 6f 63 6b 20 50 61 67 |er" to "|Lock Pag|
|000007d0| 65 22 0d 65 6e 64 20 69 | 66 0d 69 66 20 74 68 65 |e".end i|f.if the|
|000007e0| 72 65 20 69 73 20 61 20 | 62 74 6e 20 22 50 69 63 |re is a |btn "Pic|
|000007f0| 74 75 72 65 22 20 74 68 | 65 6e 0d 73 65 74 20 74 |ture" th|en.set t|
|00000800| 68 65 20 6e 61 6d 65 20 | 6f 66 20 6d 65 6e 75 49 |he name |of menuI|
|00000810| 74 65 6d 20 31 31 20 6f | 66 20 6d 65 6e 75 20 22 |tem 11 o|f menu "|
|00000820| 4c 61 79 6f 75 74 22 20 | 74 6f 20 22 45 64 69 74 |Layout" |to "Edit|
|00000830| 20 52 75 6e 2d 41 72 6f | 75 6e 64 22 0d 65 6c 73 | Run-Aro|und".els|
|00000840| 65 0d 73 65 74 20 74 68 | 65 20 6e 61 6d 65 20 6f |e.set th|e name o|
|00000850| 66 20 6d 65 6e 75 49 74 | 65 6d 20 31 31 20 6f 66 |f menuIt|em 11 of|
|00000860| 20 6d 65 6e 75 20 22 4c | 61 79 6f 75 74 22 20 74 | menu "L|ayout" t|
|00000870| 6f 20 22 43 72 65 61 74 | 65 20 52 75 6e 2d 41 72 |o "Creat|e Run-Ar|
|00000880| 6f 75 6e 64 22 0d 65 6e | 64 20 69 66 0d 65 6e 64 |ound".en|d if.end|
|00000890| 20 69 66 0d 70 61 73 73 | 20 6f 70 65 6e 43 61 72 | if.pass| openCar|
|000008a0| 64 0d 65 6e 64 20 6f 70 | 65 6e 43 61 72 64 0d 0d |d.end op|enCard..|
|000008b0| 0d 6f 6e 20 64 6f 55 70 | 64 61 74 65 20 61 6c 6c |.on doUp|date all|
|000008c0| 54 65 78 74 0d 67 6c 6f | 62 61 6c 20 74 68 65 43 |Text.glo|bal theC|
|000008d0| 6f 72 6e 65 72 2c 74 68 | 65 54 6f 6f 6c 0d 69 66 |orner,th|eTool.if|
|000008e0| 20 74 68 65 20 73 68 6f | 72 74 20 6e 61 6d 65 20 | the sho|rt name |
|000008f0| 6f 66 20 74 68 69 73 20 | 63 64 20 69 73 20 22 54 |of this |cd is "T|
|00000900| 61 62 6c 65 20 6f 66 20 | 43 6f 6e 74 65 6e 74 73 |able of |Contents|
|00000910| 22 20 74 68 65 6e 0d 61 | 6e 73 77 65 72 20 22 43 |" then.a|nswer "C|
|00000920| 61 6e d5 74 20 72 65 66 | 6c 6f 77 20 74 68 65 20 |an.t ref|low the |
|00000930| 74 65 78 74 20 6f 66 20 | 74 68 69 73 20 70 61 67 |text of |this pag|
|00000940| 65 2e 22 0d 65 78 69 74 | 20 64 6f 55 70 64 61 74 |e.".exit| doUpdat|
|00000950| 65 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 74 68 65 |e.end if|.put the|
|00000960| 20 73 68 6f 72 74 20 69 | 64 20 6f 66 20 74 68 69 | short i|d of thi|
|00000970| 73 20 63 64 20 69 6e 74 | 6f 20 73 74 61 72 74 43 |s cd int|o startC|
|00000980| 64 49 64 0d 69 66 20 66 | 6c 64 20 22 50 69 63 74 |dId.if f|ld "Pict|
|00000990| 54 68 69 73 50 61 67 65 | 22 20 69 73 20 6e 6f 74 |ThisPage|" is not|
|000009a0| 20 65 6d 70 74 79 20 61 | 6e 64 20 74 68 65 72 65 | empty a|nd there|
|000009b0| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 28 69 74 | is a wi|ndow (it|
|000009c0| 65 6d 20 31 20 6f 66 20 | 66 6c 64 20 22 50 69 63 |em 1 of |fld "Pic|
|000009d0| 74 54 68 69 73 50 61 67 | 65 22 29 20 74 68 65 6e |tThisPag|e") then|
|000009e0| 0d 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 28 69 |.close w|indow (i|
|000009f0| 74 65 6d 20 31 20 6f 66 | 20 66 6c 64 20 22 50 69 |tem 1 of| fld "Pi|
|00000a00| 63 74 54 68 69 73 50 61 | 67 65 22 29 0d 65 6e 64 |ctThisPa|ge").end|
|00000a10| 20 69 66 0d 75 6e 6d 61 | 72 6b 20 61 6c 6c 20 63 | if.unma|rk all c|
|00000a20| 64 73 0d 6c 6f 63 6b 20 | 6d 65 73 73 61 67 65 73 |ds.lock |messages|
|00000a30| 0d 70 75 74 20 74 68 65 | 20 74 65 78 74 48 65 69 |.put the| textHei|
|00000a40| 67 68 74 20 6f 66 20 66 | 6c 64 20 22 42 6f 64 79 |ght of f|ld "Body|
|00000a50| 22 20 69 6e 74 6f 20 74 | 68 65 4c 65 61 64 0d 70 |" into t|heLead.p|
|00000a60| 75 74 20 74 68 65 20 74 | 65 78 74 46 6f 6e 74 20 |ut the t|extFont |
|00000a70| 6f 66 20 66 6c 64 20 22 | 42 6f 64 79 22 20 69 6e |of fld "|Body" in|
|00000a80| 74 6f 20 74 68 65 46 6f | 6e 74 0d 70 75 74 20 74 |to theFo|nt.put t|
|00000a90| 68 65 20 74 65 78 74 53 | 69 7a 65 20 6f 66 20 66 |he textS|ize of f|
|00000aa0| 6c 64 20 22 42 6f 64 79 | 22 20 69 6e 74 6f 20 74 |ld "Body|" into t|
|00000ab0| 68 65 53 69 7a 65 0d 69 | 66 20 74 68 65 4c 65 61 |heSize.i|f theLea|
|00000ac0| 64 20 69 73 20 31 38 20 | 74 68 65 6e 20 70 75 74 |d is 18 |then put|
|00000ad0| 20 31 34 20 69 6e 74 6f | 20 74 68 65 54 6f 74 61 | 14 into| theTota|
|00000ae0| 6c 4c 69 6e 65 73 0d 69 | 66 20 74 68 65 4c 65 61 |lLines.i|f theLea|
|00000af0| 64 20 69 73 20 31 36 20 | 74 68 65 6e 20 70 75 74 |d is 16 |then put|
|00000b00| 20 31 36 20 69 6e 74 6f | 20 74 68 65 54 6f 74 61 | 16 into| theTota|
|00000b10| 6c 4c 69 6e 65 73 0d 69 | 66 20 74 68 65 4c 65 61 |lLines.i|f theLea|
|00000b20| 64 20 69 73 20 31 34 20 | 74 68 65 6e 20 70 75 74 |d is 14 |then put|
|00000b30| 20 31 38 20 69 6e 74 6f | 20 74 68 65 54 6f 74 61 | 18 into| theTota|
|00000b40| 6c 4c 69 6e 65 73 0d 69 | 66 20 74 68 65 4c 65 61 |lLines.i|f theLea|
|00000b50| 64 20 69 73 20 31 32 20 | 74 68 65 6e 20 70 75 74 |d is 12 |then put|
|00000b60| 20 32 30 20 69 6e 74 6f | 20 74 68 65 54 6f 74 61 | 20 into| theTota|
|00000b70| 6c 4c 69 6e 65 73 0d 70 | 75 74 20 74 68 65 20 76 |lLines.p|ut the v|
|00000b80| 69 73 69 62 6c 65 20 6f | 66 20 6d 73 67 20 69 6e |isible o|f msg in|
|00000b90| 74 6f 20 6d 56 69 73 0d | 69 66 20 74 68 65 20 68 |to mVis.|if the h|
|00000ba0| 65 69 67 68 74 20 6f 66 | 20 66 6c 64 20 22 42 6f |eight of| fld "Bo|
|00000bb0| 64 79 22 20 3c 20 32 34 | 30 20 74 68 65 6e 20 73 |dy" < 24|0 then s|
|00000bc0| 75 62 74 72 61 63 74 20 | 32 20 66 72 6f 6d 20 74 |ubtract |2 from t|
|00000bd0| 68 65 54 6f 74 61 6c 4c | 69 6e 65 73 0d 70 75 74 |heTotalL|ines.put|
|00000be0| 20 66 6c 64 20 22 41 72 | 74 69 63 6c 65 4e 61 6d | fld "Ar|ticleNam|
|00000bf0| 65 22 20 69 6e 74 6f 20 | 74 68 69 73 43 68 61 70 |e" into |thisChap|
|00000c00| 74 65 72 0d 6d 61 72 6b | 20 63 64 73 20 77 68 65 |ter.mark| cds whe|
|00000c10| 72 65 20 66 6c 64 20 22 | 41 72 74 69 63 6c 65 4e |re fld "|ArticleN|
|00000c20| 61 6d 65 22 20 69 73 20 | 74 68 69 73 43 68 61 70 |ame" is |thisChap|
|00000c30| 74 65 72 0d 67 6f 20 66 | 69 72 73 74 20 6d 61 72 |ter.go f|irst mar|
|00000c40| 6b 65 64 20 63 64 0d 6c | 6f 63 6b 20 73 63 72 65 |ked cd.l|ock scre|
|00000c50| 65 6e 0d 69 66 20 61 6c | 6c 54 65 78 74 20 69 73 |en.if al|lText is|
|00000c60| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 70 75 74 20 | empty t|hen.put |
|00000c70| 73 61 76 65 52 65 74 75 | 72 6e 73 20 69 6e 74 6f |saveRetu|rns into|
|00000c80| 20 74 68 65 52 65 74 75 | 72 6e 73 0d 72 65 70 65 | theRetu|rns.repe|
|00000c90| 61 74 20 77 69 74 68 20 | 78 20 3d 20 31 20 74 6f |at with |x = 1 to|
|00000ca0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6d | the num|ber of m|
|00000cb0| 61 72 6b 65 64 20 63 64 | 73 0d 69 66 20 6e 6f 74 |arked cd|s.if not|
|00000cc0| 20 74 68 65 20 68 69 67 | 68 6c 69 67 68 74 20 6f | the hig|hlight o|
|00000cd0| 66 20 62 67 20 62 74 6e | 20 22 4c 6f 63 6b 50 61 |f bg btn| "LockPa|
|00000ce0| 67 65 22 20 74 68 65 6e | 0d 70 75 74 20 66 6c 64 |ge" then|.put fld|
|00000cf0| 20 22 42 6f 64 79 22 20 | 26 20 22 20 22 20 61 66 | "Body" |& " " af|
|00000d00| 74 65 72 20 61 6c 6c 54 | 65 78 74 0d 70 75 74 20 |ter allT|ext.put |
|00000d10| 65 6d 70 74 79 20 69 6e | 74 6f 20 66 6c 64 20 22 |empty in|to fld "|
|00000d20| 42 6f 64 79 22 0d 65 6e | 64 20 69 66 0d 67 6f 20 |Body".en|d if.go |
|00000d30| 6e 65 78 74 20 6d 61 72 | 6b 65 64 20 63 64 0d 65 |next mar|ked cd.e|
|00000d40| 6e 64 20 72 65 70 65 61 | 74 0d 70 75 74 20 22 53 |nd repea|t.put "S|
|00000d50| 74 72 69 70 70 69 6e 67 | 20 74 65 78 74 2e 20 30 |tripping| text. 0|
|00000d60| 25 20 63 6f 6d 70 6c 65 | 74 65 2e 22 0d 73 65 74 |% comple|te.".set|
|00000d70| 20 6e 75 6d 62 65 72 46 | 6f 72 6d 61 74 20 74 6f | numberF|ormat to|
|00000d80| 20 22 30 30 22 0d 70 75 | 74 20 74 68 65 20 6e 75 | "00".pu|t the nu|
|00000d90| 6d 62 65 72 20 6f 66 20 | 63 68 61 72 73 20 6f 66 |mber of |chars of|
|00000da0| 20 61 6c 6c 54 65 78 74 | 20 69 6e 74 6f 20 64 69 | allText| into di|
|00000db0| 76 54 6f 70 0d 72 65 70 | 65 61 74 0d 70 75 74 20 |vTop.rep|eat.put |
|00000dc0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 68 |the numb|er of ch|
|00000dd0| 61 72 73 20 6f 66 20 61 | 6c 6c 54 65 78 74 20 69 |ars of a|llText i|
|00000de0| 6e 74 6f 20 74 6f 74 43 | 68 61 72 73 0d 69 66 20 |nto totC|hars.if |
|00000df0| 74 6f 74 43 68 61 72 73 | 20 3e 20 31 30 30 30 20 |totChars| > 1000 |
|00000e00| 74 68 65 6e 0d 70 75 74 | 20 28 31 20 2d 20 28 28 |then.put| (1 - ((|
|00000e10| 74 6f 74 43 68 61 72 73 | 20 2d 20 31 30 30 30 29 |totChars| - 1000)|
|00000e20| 2f 64 69 76 54 6f 70 29 | 29 20 2a 20 31 30 30 20 |/divTop)|) * 100 |
|00000e30| 69 6e 74 6f 20 74 68 65 | 50 65 72 63 65 6e 74 0d |into the|Percent.|
|00000e40| 70 75 74 20 22 53 74 72 | 69 70 70 69 6e 67 20 74 |put "Str|ipping t|
|00000e50| 65 78 74 2e 20 22 20 26 | 20 74 68 65 50 65 72 63 |ext. " &| thePerc|
|00000e60| 65 6e 74 20 26 20 22 25 | 20 63 6f 6d 70 6c 65 74 |ent & "%| complet|
|00000e70| 65 2e 22 0d 70 75 74 20 | 63 68 61 72 20 31 20 74 |e.".put |char 1 t|
|00000e80| 6f 20 31 30 30 30 20 6f | 66 20 61 6c 6c 54 65 78 |o 1000 o|f allTex|
|00000e90| 74 20 69 6e 74 6f 20 73 | 74 72 69 70 54 65 78 74 |t into s|tripText|
|00000ea0| 0d 70 75 74 20 72 65 74 | 75 72 6e 73 4f 75 74 28 |.put ret|urnsOut(|
|00000eb0| 73 74 72 69 70 54 65 78 | 74 29 20 69 6e 74 6f 20 |stripTex|t) into |
|00000ec0| 73 74 72 69 70 54 65 78 | 74 0d 70 75 74 20 66 61 |stripTex|t.put fa|
|00000ed0| 73 74 53 74 72 69 70 53 | 70 61 63 65 73 28 73 74 |stStripS|paces(st|
|00000ee0| 72 69 70 54 65 78 74 29 | 20 61 66 74 65 72 20 63 |ripText)| after c|
|00000ef0| 6c 65 61 6e 54 65 78 74 | 0d 64 65 6c 65 74 65 20 |leanText|.delete |
|00000f00| 63 68 61 72 20 31 20 74 | 6f 20 31 30 30 30 20 6f |char 1 t|o 1000 o|
|00000f10| 66 20 61 6c 6c 54 65 78 | 74 0d 65 6c 73 65 0d 70 |f allTex|t.else.p|
|00000f20| 75 74 20 63 68 61 72 20 | 31 20 74 6f 20 28 74 68 |ut char |1 to (th|
|00000f30| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 63 68 61 72 |e number| of char|
|00000f40| 73 20 6f 66 20 61 6c 6c | 54 65 78 74 29 20 6f 66 |s of all|Text) of|
|00000f50| 20 61 6c 6c 54 65 78 74 | 20 69 6e 74 6f 20 73 74 | allText| into st|
|00000f60| 72 69 70 54 65 78 74 0d | 70 75 74 20 72 65 74 75 |ripText.|put retu|
|00000f70| 72 6e 73 4f 75 74 28 73 | 74 72 69 70 54 65 78 74 |rnsOut(s|tripText|
|00000f80| 29 20 69 6e 74 6f 20 73 | 74 72 69 70 54 65 78 74 |) into s|tripText|
|00000f90| 0d 70 75 74 20 66 61 73 | 74 53 74 72 69 70 53 70 |.put fas|tStripSp|
|00000fa0| 61 63 65 73 28 73 74 72 | 69 70 54 65 78 74 29 20 |aces(str|ipText) |
|00000fb0| 61 66 74 65 72 20 63 6c | 65 61 6e 54 65 78 74 0d |after cl|eanText.|
|00000fc0| 65 78 69 74 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |exit rep|eat.end |
|00000fd0| 69 66 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 70 75 |if.end r|epeat.pu|
|00000fe0| 74 20 63 6c 65 61 6e 54 | 65 78 74 20 69 6e 74 6f |t cleanT|ext into|
|00000ff0| 20 61 6c 6c 54 65 78 74 | 0d 73 65 74 20 74 68 65 | allText|.set the|
|00001000| 20 6e 75 6d 62 65 72 46 | 6f 72 6d 61 74 20 74 6f | numberF|ormat to|
|00001010| 20 22 30 22 0d 65 6c 73 | 65 0d 70 75 74 20 6e 6f | "0".els|e.put no|
|00001020| 52 65 74 75 72 6e 73 20 | 69 6e 74 6f 20 74 68 65 |Returns |into the|
|00001030| 52 65 74 75 72 6e 73 0d | 67 6f 20 66 69 72 73 74 |Returns.|go first|
|00001040| 20 6d 61 72 6b 65 64 20 | 63 64 0d 72 65 70 65 61 | marked |cd.repea|
|00001050| 74 20 77 69 74 68 20 75 | 20 3d 20 31 20 74 6f 20 |t with u| = 1 to |
|00001060| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6d 61 |the numb|er of ma|
|00001070| 72 6b 65 64 20 63 64 73 | 0d 69 66 20 6e 6f 74 20 |rked cds|.if not |
|00001080| 74 68 65 20 68 69 67 68 | 6c 69 67 68 74 20 6f 66 |the high|light of|
|00001090| 20 62 67 20 62 74 6e 20 | 22 4c 6f 63 6b 50 61 67 | bg btn |"LockPag|
|000010a0| 65 22 20 74 68 65 6e 0d | 70 75 74 20 65 6d 70 74 |e" then.|put empt|
|000010b0| 79 20 69 6e 74 6f 20 66 | 6c 64 20 22 42 6f 64 79 |y into f|ld "Body|
|000010c0| 22 0d 67 6f 20 6e 65 78 | 74 20 6d 61 72 6b 65 64 |".go nex|t marked|
|000010d0| 20 63 64 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 72 | cd.end |if.end r|
|000010e0| 65 70 65 61 74 0d 67 6f | 20 66 69 72 73 74 20 6d |epeat.go| first m|
|000010f0| 61 72 6b 65 64 20 63 64 | 0d 65 6e 64 20 69 66 0d |arked cd|.end if.|
|00001100| 70 75 74 20 22 4d 61 72 | 6b 69 6e 67 20 74 65 78 |put "Mar|king tex|
|00001110| 74 2c 20 70 6c 65 61 73 | 65 20 73 74 61 6e 64 20 |t, pleas|e stand |
|00001120| 62 79 2e 22 0d 73 65 74 | 20 74 68 65 20 76 69 73 |by.".set| the vis|
|00001130| 69 62 6c 65 20 6f 66 20 | 6d 73 67 20 74 6f 20 74 |ible of |msg to t|
|00001140| 72 75 65 0d 70 75 74 20 | 72 65 74 75 72 6e 73 4f |rue.put |returnsO|
|00001150| 75 74 28 61 6c 6c 54 65 | 78 74 29 20 69 6e 74 6f |ut(allTe|xt) into|
|00001160| 20 72 65 46 6c 6f 77 4f | 75 74 0d 70 75 74 20 66 | reFlowO|ut.put f|
|00001170| 6f 72 6d 61 74 54 65 78 | 74 28 72 65 46 6c 6f 77 |ormatTex|t(reFlow|
|00001180| 4f 75 74 29 20 69 6e 74 | 6f 20 72 65 46 6c 6f 77 |Out) int|o reFlow|
|00001190| 4f 75 74 0d 70 75 74 20 | 72 65 74 75 72 6e 73 49 |Out.put |returnsI|
|000011a0| 6e 28 72 65 66 6c 6f 77 | 4f 75 74 2c 74 68 65 46 |n(reflow|Out,theF|
|000011b0| 6f 6e 74 2c 74 68 65 53 | 69 7a 65 29 20 69 6e 74 |ont,theS|ize) int|
|000011c0| 6f 20 61 6c 6c 54 65 78 | 74 0d 67 6f 20 74 6f 20 |o allTex|t.go to |
|000011d0| 66 69 72 73 74 20 6d 61 | 72 6b 65 64 20 63 64 0d |first ma|rked cd.|
|000011e0| 72 65 70 65 61 74 0d 72 | 65 70 65 61 74 0d 69 66 |repeat.r|epeat.if|
|000011f0| 20 6e 6f 74 20 74 68 65 | 20 68 69 67 68 4c 69 67 | not the| highLig|
|00001200| 68 74 20 6f 66 20 62 67 | 20 62 74 6e 20 22 4c 6f |ht of bg| btn "Lo|
|00001210| 63 6b 50 61 67 65 22 20 | 74 68 65 6e 20 65 78 69 |ckPage" |then exi|
|00001220| 74 20 72 65 70 65 61 74 | 0d 67 6f 20 6e 65 78 74 |t repeat|.go next|
|00001230| 20 6d 61 72 6b 65 64 20 | 63 64 0d 69 66 20 74 68 | marked |cd.if th|
|00001240| 65 20 69 64 20 6f 66 20 | 74 68 69 73 20 63 64 20 |e id of |this cd |
|00001250| 69 73 20 74 68 65 20 69 | 64 20 6f 66 20 74 68 65 |is the i|d of the|
|00001260| 20 66 69 72 73 74 20 6d | 61 72 6b 65 64 20 63 64 | first m|arked cd|
|00001270| 20 74 68 65 6e 0d 67 6f | 20 6c 61 73 74 20 6d 61 | then.go| last ma|
|00001280| 72 6b 65 64 20 63 64 0d | 64 6f 4d 65 6e 75 20 22 |rked cd.|doMenu "|
|00001290| 4e 65 77 20 43 61 72 64 | 22 0d 70 75 74 20 74 68 |New Card|".put th|
|000012a0| 69 73 43 68 61 70 74 65 | 72 20 69 6e 74 6f 20 66 |isChapte|r into f|
|000012b0| 6c 64 20 22 41 72 74 69 | 63 6c 65 4e 61 6d 65 22 |ld "Arti|cleName"|
|000012c0| 0d 6d 61 72 6b 20 74 68 | 69 73 20 63 64 0d 65 78 |.mark th|is cd.ex|
|000012d0| 69 74 20 72 65 70 65 61 | 74 0d 65 6e 64 20 69 66 |it repea|t.end if|
|000012e0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 69 66 20 74 |.end rep|eat.if t|
|000012f0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 62 74 6e |he numbe|r of btn|
|00001300| 73 20 ad 20 30 20 74 68 | 65 6e 0d 72 65 70 65 61 |s . 0 th|en.repea|
|00001310| 74 20 77 69 74 68 20 78 | 20 3d 20 31 20 74 6f 20 |t with x| = 1 to |
|00001320| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 62 74 |the numb|er of bt|
|00001330| 6e 73 0d 70 75 74 20 74 | 68 65 20 73 68 6f 72 74 |ns.put t|he short|
|00001340| 20 6e 61 6d 65 20 6f 66 | 20 62 74 6e 20 78 20 26 | name of| btn x &|
|00001350| 20 22 2c 22 20 69 6e 74 | 6f 20 62 74 6e 4c 69 73 | "," int|o btnLis|
|00001360| 74 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 69 66 20 |t.end re|peat.if |
|00001370| 22 50 69 63 74 75 72 65 | 22 20 69 73 20 69 6e 20 |"Picture|" is in |
|00001380| 62 74 6e 4c 69 73 74 20 | 74 68 65 6e 0d 73 65 74 |btnList |then.set|
|00001390| 20 74 68 65 20 73 68 6f | 77 4e 61 6d 65 20 6f 66 | the sho|wName of|
|000013a0| 20 62 74 6e 20 22 50 69 | 63 74 75 72 65 22 20 74 | btn "Pi|cture" t|
|000013b0| 6f 20 66 61 6c 73 65 0d | 73 65 74 20 74 68 65 20 |o false.|set the |
|000013c0| 73 74 79 6c 65 20 6f 66 | 20 62 74 6e 20 22 50 69 |style of| btn "Pi|
|000013d0| 63 74 75 72 65 22 20 74 | 6f 20 22 74 72 61 6e 73 |cture" t|o "trans|
|000013e0| 70 61 72 65 6e 74 22 0d | 70 75 74 20 74 68 65 20 |parent".|put the |
|000013f0| 73 68 6f 72 74 20 69 64 | 20 6f 66 20 62 74 6e 20 |short id| of btn |
|00001400| 22 50 69 63 74 75 72 65 | 22 20 69 6e 74 6f 20 62 |"Picture|" into b|
|00001410| 74 6e 49 64 0d 70 75 74 | 20 64 6f 52 75 6e 41 72 |tnId.put| doRunAr|
|00001420| 6f 75 6e 64 28 61 6c 6c | 54 65 78 74 2c 62 74 6e |ound(all|Text,btn|
|00001430| 49 64 2c 74 68 65 52 65 | 74 75 72 6e 73 2c 74 68 |Id,theRe|turns,th|
|00001440| 65 46 6f 6e 74 2c 74 68 | 65 53 69 7a 65 2c 74 68 |eFont,th|eSize,th|
|00001450| 65 54 6f 74 61 6c 4c 69 | 6e 65 73 2c 74 68 65 4c |eTotalLi|nes,theL|
|00001460| 65 61 64 29 20 69 6e 74 | 6f 20 61 6c 6c 54 65 78 |ead) int|o allTex|
|00001470| 74 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 69 66 0d |t.end if|.end if.|
|00001480| 70 75 74 20 6c 69 6e 65 | 20 31 20 74 6f 20 74 68 |put line| 1 to th|
|00001490| 65 54 6f 74 61 6c 4c 69 | 6e 65 73 20 6f 66 20 61 |eTotalLi|nes of a|
|000014a0| 6c 6c 54 65 78 74 20 69 | 6e 74 6f 20 66 6c 64 20 |llText i|nto fld |
|000014b0| 22 42 6f 64 79 22 0d 73 | 65 74 20 74 68 65 20 73 |"Body".s|et the s|
|000014c0| 74 79 6c 65 20 6f 66 20 | 66 6c 64 20 22 42 6f 64 |tyle of |fld "Bod|
|000014d0| 79 22 20 74 6f 20 22 54 | 72 61 6e 73 70 61 72 65 |y" to "T|ranspare|
|000014e0| 6e 74 22 0d 64 65 6c 65 | 74 65 20 6c 69 6e 65 20 |nt".dele|te line |
|000014f0| 31 20 74 6f 20 74 68 65 | 54 6f 74 61 6c 4c 69 6e |1 to the|TotalLin|
|00001500| 65 73 20 6f 66 20 61 6c | 6c 54 65 78 74 0d 69 66 |es of al|lText.if|
|00001510| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c | the num|ber of l|
|00001520| 69 6e 65 73 20 6f 66 20 | 61 6c 6c 54 65 78 74 20 |ines of |allText |
|00001530| 3c 3d 20 30 20 74 68 65 | 6e 20 65 78 69 74 20 72 |<= 0 the|n exit r|
|00001540| 65 70 65 61 74 0d 67 6f | 20 6e 65 78 74 20 6d 61 |epeat.go| next ma|
|00001550| 72 6b 65 64 20 63 64 0d | 69 66 20 74 68 65 20 69 |rked cd.|if the i|
|00001560| 64 20 6f 66 20 74 68 69 | 73 20 63 64 20 69 73 20 |d of thi|s cd is |
|00001570| 74 68 65 20 69 64 20 6f | 66 20 74 68 65 20 66 69 |the id o|f the fi|
|00001580| 72 73 74 20 6d 61 72 6b | 65 64 20 63 64 20 74 68 |rst mark|ed cd th|
|00001590| 65 6e 0d 67 6f 20 6c 61 | 73 74 20 6d 61 72 6b 65 |en.go la|st marke|
|000015a0| 64 20 63 64 0d 64 6f 4d | 65 6e 75 20 22 4e 65 77 |d cd.doM|enu "New|
|000015b0| 20 43 61 72 64 22 0d 6d | 61 72 6b 20 74 68 69 73 | Card".m|ark this|
|000015c0| 20 63 64 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 22 | cd.end |if.put "|
|000015d0| 57 72 69 74 69 6e 67 20 | 70 61 67 65 22 20 26 26 |Writing |page" &&|
|000015e0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 74 | the num|ber of t|
|000015f0| 68 69 73 20 63 64 0d 70 | 75 74 20 74 68 69 73 43 |his cd.p|ut thisC|
|00001600| 68 61 70 74 65 72 20 69 | 6e 74 6f 20 66 6c 64 20 |hapter i|nto fld |
|00001610| 22 41 72 74 69 63 6c 65 | 4e 61 6d 65 22 0d 65 6e |"Article|Name".en|
|00001620| 64 20 72 65 70 65 61 74 | 0d 67 6f 20 66 69 72 73 |d repeat|.go firs|
|00001630| 74 20 6d 61 72 6b 65 64 | 20 63 64 0d 72 65 70 65 |t marked| cd.repe|
|00001640| 61 74 20 77 69 74 68 20 | 78 20 3d 20 31 20 74 6f |at with |x = 1 to|
|00001650| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6d | the num|ber of m|
|00001660| 61 72 6b 65 64 20 63 64 | 73 0d 69 66 20 66 6c 64 |arked cd|s.if fld|
|00001670| 20 22 42 6f 64 79 22 20 | 69 73 20 65 6d 70 74 79 | "Body" |is empty|
|00001680| 20 61 6e 64 20 6e 6f 74 | 20 74 68 65 20 68 69 67 | and not| the hig|
|00001690| 68 6c 69 67 68 74 20 6f | 66 20 62 67 20 62 74 6e |hlight o|f bg btn|
|000016a0| 20 22 4c 6f 63 6b 50 61 | 67 65 22 20 74 68 65 6e | "LockPa|ge" then|
|000016b0| 0d 64 6f 4d 65 6e 75 20 | 22 44 65 6c 65 74 65 20 |.doMenu |"Delete |
|000016c0| 43 61 72 64 22 0d 65 6e | 64 20 69 66 0d 67 6f 20 |Card".en|d if.go |
|000016d0| 6e 65 78 74 20 6d 61 72 | 6b 65 64 20 63 64 0d 65 |next mar|ked cd.e|
|000016e0| 6e 64 20 72 65 70 65 61 | 74 0d 75 6e 6c 6f 63 6b |nd repea|t.unlock|
|000016f0| 20 6d 65 73 73 61 67 65 | 73 0d 69 66 20 74 68 65 | message|s.if the|
|00001700| 72 65 20 69 73 20 61 20 | 63 64 20 69 64 20 73 74 |re is a |cd id st|
|00001710| 61 72 74 43 64 49 64 20 | 74 68 65 6e 20 67 6f 20 |artCdId |then go |
|00001720| 63 64 20 69 64 20 73 74 | 61 72 74 43 64 49 64 0d |cd id st|artCdId.|
|00001730| 65 6c 73 65 20 67 6f 20 | 66 69 72 73 74 20 6d 61 |else go |first ma|
|00001740| 72 6b 65 64 20 63 64 0d | 73 65 74 20 74 68 65 20 |rked cd.|set the |
|00001750| 76 69 73 69 62 6c 65 20 | 6f 66 20 6d 73 67 20 74 |visible |of msg t|
|00001760| 6f 20 6d 56 69 73 0d 73 | 65 74 20 74 68 65 20 63 |o mVis.s|et the c|
|00001770| 68 65 63 6b 4d 61 72 6b | 20 6f 66 20 6d 65 6e 75 |heckMark| of menu|
|00001780| 49 74 65 6d 20 31 31 20 | 6f 66 20 6d 65 6e 75 20 |Item 11 |of menu |
|00001790| 22 4c 61 79 6f 75 74 22 | 20 74 6f 20 66 61 6c 73 |"Layout"| to fals|
|000017a0| 65 0d 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |e.put em|pty into|
|000017b0| 20 74 68 65 43 6f 72 6e | 65 72 0d 69 66 20 74 68 | theCorn|er.if th|
|000017c0| 65 54 6f 6f 6c 20 69 73 | 20 22 50 69 63 74 75 72 |eTool is| "Pictur|
|000017d0| 65 54 6f 6f 6c 22 20 74 | 68 65 6e 20 62 75 74 74 |eTool" t|hen butt|
|000017e0| 6f 6e 31 0d 73 65 6e 64 | 20 6f 70 65 6e 43 61 72 |on1.send| openCar|
|000017f0| 64 20 74 6f 20 74 68 69 | 73 20 62 67 0d 65 6e 64 |d to thi|s bg.end|
|00001800| 20 64 6f 55 70 64 61 74 | 65 0d 0d 66 75 6e 63 74 | doUpdat|e..funct|
|00001810| 69 6f 6e 20 64 6f 52 75 | 6e 41 72 6f 75 6e 64 20 |ion doRu|nAround |
|00001820| 74 68 65 54 65 78 74 2c | 72 75 6e 41 72 6f 75 6e |theText,|runAroun|
|00001830| 64 42 74 6e 2c 77 68 61 | 74 72 65 74 75 72 6e 73 |dBtn,wha|treturns|
|00001840| 2c 74 68 65 46 6f 6e 74 | 2c 74 68 65 53 69 7a 65 |,theFont|,theSize|
|00001850| 2c 74 68 65 54 6f 74 61 | 6c 4c 69 6e 65 73 2c 74 |,theTota|lLines,t|
|00001860| 68 65 4c 65 61 64 0d 70 | 75 74 20 74 68 65 54 65 |heLead.p|ut theTe|
|00001870| 78 74 20 69 6e 74 6f 20 | 72 65 46 6c 6f 77 65 64 |xt into |reFlowed|
|00001880| 54 65 78 74 0d 70 75 74 | 20 30 20 69 6e 74 6f 20 |Text.put| 0 into |
|00001890| 66 72 6f 6d 54 68 65 54 | 6f 70 0d 70 75 74 20 22 |fromTheT|op.put "|
|000018a0| 52 65 66 6c 6f 77 69 6e | 67 20 72 75 6e 2d 61 72 |Reflowin|g run-ar|
|000018b0| 6f 75 6e 64 2e 22 0d 70 | 75 74 20 74 68 65 20 72 |ound.".p|ut the r|
|000018c0| 65 63 74 20 6f 66 20 62 | 74 6e 20 69 64 20 72 75 |ect of b|tn id ru|
|000018d0| 6e 41 72 6f 75 6e 64 42 | 74 6e 20 69 6e 74 6f 20 |nAroundB|tn into |
|000018e0| 74 68 65 50 69 63 0d 70 | 75 74 20 74 68 65 20 77 |thePic.p|ut the w|
|000018f0| 69 64 74 68 20 6f 66 20 | 62 74 6e 20 69 64 20 72 |idth of |btn id r|
|00001900| 75 6e 41 72 6f 75 6e 64 | 42 74 6e 20 69 6e 74 6f |unAround|Btn into|
|00001910| 20 74 68 65 52 75 6e 57 | 69 64 74 68 0d 69 66 20 | theRunW|idth.if |
|00001920| 69 74 65 6d 20 32 20 6f | 66 20 74 68 65 50 69 63 |item 2 o|f thePic|
|00001930| 20 3e 20 32 39 20 74 68 | 65 6e 0d 69 66 20 69 74 | > 29 th|en.if it|
|00001940| 65 6d 20 32 20 6f 66 20 | 74 68 65 50 69 63 20 3e |em 2 of |thePic >|
|00001950| 20 37 39 20 74 68 65 6e | 0d 70 75 74 20 28 69 74 | 79 then|.put (it|
|00001960| 65 6d 20 32 20 6f 66 20 | 74 68 65 50 69 63 29 20 |em 2 of |thePic) |
|00001970| 2d 20 36 33 20 69 6e 74 | 6f 20 74 6f 70 4c 69 6e |- 63 int|o topLin|
|00001980| 65 73 0d 70 75 74 20 74 | 72 75 6e 63 28 74 6f 70 |es.put t|runc(top|
|00001990| 4c 69 6e 65 73 20 2f 20 | 74 68 65 4c 65 61 64 29 |Lines / |theLead)|
|000019a0| 20 69 6e 74 6f 20 66 72 | 6f 6d 54 68 65 54 6f 70 | into fr|omTheTop|
|000019b0| 0d 65 6e 64 20 69 66 0d | 70 75 74 20 28 69 74 65 |.end if.|put (ite|
|000019c0| 6d 20 34 20 6f 66 20 74 | 68 65 50 69 63 29 20 2d |m 4 of t|hePic) -|
|000019d0| 20 35 36 20 69 6e 74 6f | 20 74 6f 74 48 69 0d 70 | 56 into| totHi.p|
|000019e0| 75 74 20 28 74 6f 74 48 | 69 20 2f 20 74 68 65 4c |ut (totH|i / theL|
|000019f0| 65 61 64 29 20 69 6e 74 | 6f 20 74 68 65 4c 69 6e |ead) int|o theLin|
|00001a00| 65 73 0d 69 66 20 74 72 | 75 6e 63 28 74 68 65 4c |es.if tr|unc(theL|
|00001a10| 69 6e 65 73 29 20 ad 20 | 74 68 65 4c 69 6e 65 73 |ines) . |theLines|
|00001a20| 20 74 68 65 6e 20 61 64 | 64 20 31 20 74 6f 20 74 | then ad|d 1 to t|
|00001a30| 68 65 4c 69 6e 65 73 0d | 70 75 74 20 74 72 75 6e |heLines.|put trun|
|00001a40| 63 28 74 68 65 4c 69 6e | 65 73 29 20 69 6e 74 6f |c(theLin|es) into|
|00001a50| 20 74 6f 74 4c 69 6e 65 | 73 0d 69 66 20 74 6f 74 | totLine|s.if tot|
|00001a60| 4c 69 6e 65 73 20 3e 20 | 74 68 65 54 6f 74 61 6c |Lines > |theTotal|
|00001a70| 4c 69 6e 65 73 20 74 68 | 65 6e 0d 70 75 74 20 74 |Lines th|en.put t|
|00001a80| 68 65 54 6f 74 61 6c 4c | 69 6e 65 73 20 69 6e 74 |heTotalL|ines int|
|00001a90| 6f 20 74 6f 74 4c 69 6e | 65 73 0d 65 6e 64 20 69 |o totLin|es.end i|
|00001aa0| 66 0d 65 6c 73 65 0d 65 | 78 69 74 20 64 6f 52 75 |f.else.e|xit doRu|
|00001ab0| 6e 41 72 6f 75 6e 64 0d | 65 6e 64 20 69 66 0d 70 |nAround.|end if.p|
|00001ac0| 75 74 20 69 74 65 6d 20 | 33 20 6f 66 20 74 68 65 |ut item |3 of the|
|00001ad0| 50 69 63 20 2d 20 39 35 | 20 69 6e 74 6f 20 74 6f |Pic - 95| into to|
|00001ae0| 74 57 69 64 65 0d 70 75 | 74 20 22 2e 33 33 22 20 |tWide.pu|t ".33" |
|00001af0| 69 6e 74 6f 20 74 68 65 | 46 61 63 74 6f 72 0d 69 |into the|Factor.i|
|00001b00| 66 20 74 68 65 46 6f 6e | 74 20 69 73 20 22 48 65 |f theFon|t is "He|
|00001b10| 6c 76 65 74 69 63 61 22 | 20 74 68 65 6e 20 70 75 |lvetica"| then pu|
|00001b20| 74 20 22 2e 33 33 35 22 | 20 69 6e 74 6f 20 74 68 |t ".335"| into th|
|00001b30| 65 46 61 63 74 6f 72 0d | 69 66 20 74 68 65 46 6f |eFactor.|if theFo|
|00001b40| 6e 74 20 69 73 20 22 4e | 65 77 20 59 6f 72 6b 22 |nt is "N|ew York"|
|00001b50| 20 74 68 65 6e 20 70 75 | 74 20 22 2e 32 35 33 22 | then pu|t ".253"|
|00001b60| 20 69 6e 74 6f 20 74 68 | 65 46 61 63 74 6f 72 0d | into th|eFactor.|
|00001b70| 69 66 20 74 68 65 46 6f | 6e 74 20 69 73 20 22 50 |if theFo|nt is "P|
|00001b80| 61 6c 61 74 69 6e 6f 22 | 20 74 68 65 6e 20 70 75 |alatino"| then pu|
|00001b90| 74 20 22 2e 33 34 22 20 | 69 6e 74 6f 20 74 68 65 |t ".34" |into the|
|00001ba0| 46 61 63 74 6f 72 0d 69 | 66 20 74 68 65 46 6f 6e |Factor.i|f theFon|
|00001bb0| 74 20 69 73 20 22 54 69 | 6d 65 73 22 20 74 68 65 |t is "Ti|mes" the|
|00001bc0| 6e 20 70 75 74 20 22 2e | 32 35 35 22 20 69 6e 74 |n put ".|255" int|
|00001bd0| 6f 20 74 68 65 46 61 63 | 74 6f 72 0d 70 75 74 20 |o theFac|tor.put |
|00001be0| 31 20 69 6e 74 6f 20 73 | 70 61 63 65 53 69 7a 65 |1 into s|paceSize|
|00001bf0| 0d 69 66 20 74 68 65 53 | 69 7a 65 20 3d 20 31 30 |.if theS|ize = 10|
|00001c00| 20 74 68 65 6e 20 70 75 | 74 20 22 31 2e 34 35 22 | then pu|t "1.45"|
|00001c10| 20 69 6e 74 6f 20 73 70 | 61 63 65 53 69 7a 65 0d | into sp|aceSize.|
|00001c20| 69 66 20 74 68 65 53 69 | 7a 65 20 3d 20 31 32 20 |if theSi|ze = 12 |
|00001c30| 74 68 65 6e 20 70 75 74 | 20 22 31 2e 30 32 22 20 |then put| "1.02" |
|00001c40| 69 6e 74 6f 20 73 70 61 | 63 65 53 69 7a 65 0d 69 |into spa|ceSize.i|
|00001c50| 66 20 74 68 65 53 69 7a | 65 20 3d 20 31 36 20 74 |f theSiz|e = 16 t|
|00001c60| 68 65 6e 20 70 75 74 20 | 22 31 22 20 69 6e 74 6f |hen put |"1" into|
|00001c70| 20 73 70 61 63 65 53 69 | 7a 65 0d 70 75 74 20 74 | spaceSi|ze.put t|
|00001c80| 72 75 6e 63 28 74 6f 74 | 57 69 64 65 20 2a 20 74 |runc(tot|Wide * t|
|00001c90| 68 65 46 61 63 74 6f 72 | 20 2a 20 73 70 61 63 65 |heFactor| * space|
|00001ca0| 53 69 7a 65 29 20 69 6e | 74 6f 20 74 68 65 53 70 |Size) in|to theSp|
|00001cb0| 61 63 65 73 0d 69 66 20 | 74 68 65 53 70 61 63 65 |aces.if |theSpace|
|00001cc0| 73 20 3e 20 30 20 74 68 | 65 6e 0d 72 65 70 65 61 |s > 0 th|en.repea|
|00001cd0| 74 20 77 69 74 68 20 78 | 20 3d 20 31 20 74 6f 20 |t with x| = 1 to |
|00001ce0| 74 68 65 53 70 61 63 65 | 73 0d 70 75 74 20 22 20 |theSpace|s.put " |
|00001cf0| 22 20 61 66 74 65 72 20 | 74 6f 74 53 70 61 63 65 |" after |totSpace|
|00001d00| 73 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 65 6c 73 |s.end re|peat.els|
|00001d10| 65 0d 70 75 74 20 22 22 | 20 69 6e 74 6f 20 74 6f |e.put ""| into to|
|00001d20| 74 53 70 61 63 65 73 0d | 65 6e 64 20 69 66 0d 70 |tSpaces.|end if.p|
|00001d30| 75 74 20 22 50 61 67 69 | 6e 61 74 69 6e 67 20 74 |ut "Pagi|nating t|
|00001d40| 65 78 74 2c 20 70 6c 65 | 61 73 65 20 73 74 61 6e |ext, ple|ase stan|
|00001d50| 64 20 62 79 2e 22 0d 70 | 75 74 20 72 65 74 75 72 |d by.".p|ut retur|
|00001d60| 6e 73 4f 75 74 28 74 68 | 65 54 65 78 74 29 20 69 |nsOut(th|eText) i|
|00001d70| 6e 74 6f 20 74 68 65 54 | 65 78 74 0d 70 75 74 20 |nto theT|ext.put |
|00001d80| 66 6f 72 6d 61 74 54 65 | 78 74 28 74 68 65 54 65 |formatTe|xt(theTe|
|00001d90| 78 74 29 20 69 6e 74 6f | 20 74 68 65 54 65 78 74 |xt) into| theText|
|00001da0| 0d 69 66 20 66 72 6f 6d | 54 68 65 54 6f 70 20 ad |.if from|TheTop .|
|00001db0| 20 30 20 74 68 65 6e 0d | 72 65 70 65 61 74 20 77 | 0 then.|repeat w|
|00001dc0| 69 74 68 20 7a 20 3d 20 | 31 20 74 6f 20 66 72 6f |ith z = |1 to fro|
|00001dd0| 6d 54 68 65 54 6f 70 0d | 72 65 70 65 61 74 0d 69 |mTheTop.|repeat.i|
|00001de0| 66 20 63 68 61 72 20 31 | 20 6f 66 20 6c 69 6e 65 |f char 1| of line|
|00001df0| 20 31 20 6f 66 20 74 68 | 65 54 65 78 74 20 69 73 | 1 of th|eText is|
|00001e00| 20 22 20 22 20 74 68 65 | 6e 0d 64 65 6c 65 74 65 | " " the|n.delete|
|00001e10| 20 63 68 61 72 20 31 20 | 6f 66 20 6c 69 6e 65 20 | char 1 |of line |
|00001e20| 31 20 6f 66 20 74 68 65 | 54 65 78 74 0d 65 6c 73 |1 of the|Text.els|
|00001e30| 65 0d 65 78 69 74 20 72 | 65 70 65 61 74 0d 65 6e |e.exit r|epeat.en|
|00001e40| 64 20 69 66 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |d if.end| repeat.|
|00001e50| 70 75 74 20 77 6f 72 64 | 57 72 61 70 28 6c 69 6e |put word|Wrap(lin|
|00001e60| 65 20 31 20 6f 66 20 74 | 68 65 54 65 78 74 2c 28 |e 1 of t|heText,(|
|00001e70| 74 68 65 20 77 69 64 74 | 68 20 6f 66 20 66 6c 64 |the widt|h of fld|
|00001e80| 20 22 42 6f 64 79 22 20 | 2d 20 28 74 68 65 53 69 | "Body" |- (theSi|
|00001e90| 7a 65 20 2b 20 31 30 29 | 29 2c 74 68 65 46 6f 6e |ze + 10)|),theFon|
|00001ea0| 74 2c 74 68 65 53 69 7a | 65 2c 70 6c 61 69 6e 29 |t,theSiz|e,plain)|
|00001eb0| 20 69 6e 74 6f 20 6c 69 | 6e 65 20 7a 20 6f 66 20 | into li|ne z of |
|00001ec0| 72 65 46 6c 6f 77 65 64 | 54 65 78 74 0d 64 65 6c |reFlowed|Text.del|
|00001ed0| 65 74 65 20 63 68 61 72 | 20 31 20 74 6f 20 28 74 |ete char| 1 to (t|
|00001ee0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |he numbe|r of cha|
|00001ef0| 72 73 20 6f 66 20 6c 69 | 6e 65 20 7a 20 6f 66 20 |rs of li|ne z of |
|00001f00| 72 65 46 6c 6f 77 65 64 | 54 65 78 74 29 20 6f 66 |reFlowed|Text) of|
|00001f10| 20 74 68 65 54 65 78 74 | 0d 69 66 20 63 68 61 72 | theText|.if char|
|00001f20| 20 31 20 6f 66 20 74 68 | 65 54 65 78 74 20 69 73 | 1 of th|eText is|
|00001f30| 20 72 65 74 75 72 6e 20 | 74 68 65 6e 20 64 65 6c | return |then del|
|00001f40| 65 74 65 20 63 68 61 72 | 20 31 20 6f 66 20 74 68 |ete char| 1 of th|
|00001f50| 65 54 65 78 74 0d 65 6e | 64 20 72 65 70 65 61 74 |eText.en|d repeat|
|00001f60| 0d 65 6e 64 20 69 66 0d | 69 66 20 69 74 65 6d 20 |.end if.|if item |
|00001f70| 31 20 6f 66 20 74 68 65 | 50 69 63 20 3c 20 31 32 |1 of the|Pic < 12|
|00001f80| 30 20 74 68 65 6e 0d 72 | 65 70 65 61 74 20 77 69 |0 then.r|epeat wi|
|00001f90| 74 68 20 79 20 3d 20 28 | 31 20 2b 20 66 72 6f 6d |th y = (|1 + from|
|00001fa0| 54 68 65 54 6f 70 29 20 | 74 6f 20 74 6f 74 4c 69 |TheTop) |to totLi|
|00001fb0| 6e 65 73 0d 72 65 70 65 | 61 74 0d 69 66 20 63 68 |nes.repe|at.if ch|
|00001fc0| 61 72 20 31 20 6f 66 20 | 6c 69 6e 65 20 31 20 6f |ar 1 of |line 1 o|
|00001fd0| 66 20 74 68 65 54 65 78 | 74 20 69 73 20 22 20 22 |f theTex|t is " "|
|00001fe0| 20 74 68 65 6e 0d 64 65 | 6c 65 74 65 20 63 68 61 | then.de|lete cha|
|00001ff0| 72 20 31 20 6f 66 20 6c | 69 6e 65 20 31 20 6f 66 |r 1 of l|ine 1 of|
|00002000| 20 74 68 65 54 65 78 74 | 0d 65 6c 73 65 0d 65 78 | theText|.else.ex|
|00002010| 69 74 20 72 65 70 65 61 | 74 0d 65 6e 64 20 69 66 |it repea|t.end if|
|00002020| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 69 66 20 74 |.end rep|eat.if t|
|00002030| 68 65 52 75 6e 57 69 64 | 74 68 20 3e 20 33 32 30 |heRunWid|th > 320|
|00002040| 20 74 68 65 6e 0d 70 75 | 74 20 72 65 74 75 72 6e | then.pu|t return|
|00002050| 20 62 65 66 6f 72 65 20 | 6c 69 6e 65 20 79 20 6f | before |line y o|
|00002060| 66 20 72 65 46 6c 6f 77 | 65 64 54 65 78 74 0d 65 |f reFlow|edText.e|
|00002070| 6c 73 65 0d 70 75 74 20 | 74 6f 74 53 70 61 63 65 |lse.put |totSpace|
|00002080| 73 20 62 65 66 6f 72 65 | 20 6c 69 6e 65 20 31 20 |s before| line 1 |
|00002090| 6f 66 20 74 68 65 54 65 | 78 74 0d 70 75 74 20 77 |of theTe|xt.put w|
|000020a0| 6f 72 64 57 72 61 70 28 | 6c 69 6e 65 20 31 20 6f |ordWrap(|line 1 o|
|000020b0| 66 20 74 68 65 54 65 78 | 74 2c 28 74 68 65 20 77 |f theTex|t,(the w|
|000020c0| 69 64 74 68 20 6f 66 20 | 66 6c 64 20 22 42 6f 64 |idth of |fld "Bod|
|000020d0| 79 22 20 2d 20 28 74 68 | 65 53 69 7a 65 20 2b 20 |y" - (th|eSize + |
|000020e0| 31 30 29 29 2c 74 68 65 | 46 6f 6e 74 2c 74 68 65 |10)),the|Font,the|
|000020f0| 53 69 7a 65 2c 70 6c 61 | 69 6e 29 20 69 6e 74 6f |Size,pla|in) into|
|00002100| 20 6c 69 6e 65 20 79 20 | 6f 66 20 72 65 46 6c 6f | line y |of reFlo|
|00002110| 77 65 64 54 65 78 74 0d | 64 65 6c 65 74 65 20 63 |wedText.|delete c|
|00002120| 68 61 72 20 31 20 74 6f | 20 28 74 68 65 20 6e 75 |har 1 to| (the nu|
|00002130| 6d 62 65 72 20 6f 66 20 | 63 68 61 72 73 20 6f 66 |mber of |chars of|
|00002140| 20 6c 69 6e 65 20 79 20 | 6f 66 20 72 65 46 6c 6f | line y |of reFlo|
|00002150| 77 65 64 54 65 78 74 29 | 20 6f 66 20 74 68 65 54 |wedText)| of theT|
|00002160| 65 78 74 0d 69 66 20 63 | 68 61 72 20 31 20 6f 66 |ext.if c|har 1 of|
|00002170| 20 74 68 65 54 65 78 74 | 20 69 73 20 72 65 74 75 | theText| is retu|
|00002180| 72 6e 20 74 68 65 6e 0d | 64 65 6c 65 74 65 20 63 |rn then.|delete c|
|00002190| 68 61 72 20 31 20 6f 66 | 20 74 68 65 54 65 78 74 |har 1 of| theText|
|000021a0| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 69 66 0d 65 |.end if.|end if.e|
|000021b0| 6e 64 20 72 65 70 65 61 | 74 0d 65 6c 73 65 0d 72 |nd repea|t.else.r|
|000021c0| 65 70 65 61 74 20 77 69 | 74 68 20 79 20 3d 20 28 |epeat wi|th y = (|
|000021d0| 31 20 2b 20 66 72 6f 6d | 54 68 65 54 6f 70 29 20 |1 + from|TheTop) |
|000021e0| 74 6f 20 74 6f 74 4c 69 | 6e 65 73 0d 72 65 70 65 |to totLi|nes.repe|
|000021f0| 61 74 0d 69 66 20 63 68 | 61 72 20 31 20 6f 66 20 |at.if ch|ar 1 of |
|00002200| 6c 69 6e 65 20 31 20 6f | 66 20 74 68 65 54 65 78 |line 1 o|f theTex|
|00002210| 74 20 69 73 20 22 20 22 | 20 74 68 65 6e 0d 64 65 |t is " "| then.de|
|00002220| 6c 65 74 65 20 63 68 61 | 72 20 31 20 6f 66 20 6c |lete cha|r 1 of l|
|00002230| 69 6e 65 20 31 20 6f 66 | 20 74 68 65 54 65 78 74 |ine 1 of| theText|
|00002240| 0d 65 6c 73 65 0d 65 78 | 69 74 20 72 65 70 65 61 |.else.ex|it repea|
|00002250| 74 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |t.end if|.end rep|
|00002260| 65 61 74 0d 69 66 20 74 | 68 65 20 77 69 64 74 68 |eat.if t|he width|
|00002270| 20 6f 66 20 66 6c 64 20 | 22 42 6f 64 79 22 20 3c | of fld |"Body" <|
|00002280| 20 69 74 65 6d 20 31 20 | 6f 66 20 74 68 65 50 69 | item 1 |of thePi|
|00002290| 63 20 2d 20 39 35 20 74 | 68 65 6e 20 70 75 74 20 |c - 95 t|hen put |
|000022a0| 74 68 65 20 77 69 64 74 | 68 20 6f 66 20 66 6c 64 |the widt|h of fld|
|000022b0| 20 22 42 6f 64 79 22 20 | 69 6e 74 6f 20 74 68 65 | "Body" |into the|
|000022c0| 57 69 64 74 68 0d 65 6c | 73 65 20 70 75 74 20 69 |Width.el|se put i|
|000022d0| 74 65 6d 20 31 20 6f 66 | 20 74 68 65 50 69 63 20 |tem 1 of| thePic |
|000022e0| 2d 20 39 35 20 69 6e 74 | 6f 20 74 68 65 57 69 64 |- 95 int|o theWid|
|000022f0| 74 68 0d 69 66 20 74 68 | 65 52 75 6e 57 69 64 74 |th.if th|eRunWidt|
|00002300| 68 20 3e 20 33 32 30 20 | 74 68 65 6e 0d 70 75 74 |h > 320 |then.put|
|00002310| 20 72 65 74 75 72 6e 20 | 62 65 66 6f 72 65 20 6c | return |before l|
|00002320| 69 6e 65 20 79 20 6f 66 | 20 72 65 46 6c 6f 77 65 |ine y of| reFlowe|
|00002330| 64 54 65 78 74 0d 65 6c | 73 65 0d 70 75 74 20 77 |dText.el|se.put w|
|00002340| 6f 72 64 57 72 61 70 28 | 6c 69 6e 65 20 31 20 6f |ordWrap(|line 1 o|
|00002350| 66 20 74 68 65 54 65 78 | 74 2c 74 68 65 57 69 64 |f theTex|t,theWid|
|00002360| 74 68 2c 74 68 65 46 6f | 6e 74 2c 74 68 65 53 69 |th,theFo|nt,theSi|
|00002370| 7a 65 2c 70 6c 61 69 6e | 29 20 69 6e 74 6f 20 6c |ze,plain|) into l|
|00002380| 69 6e 65 20 79 20 6f 66 | 20 72 65 46 6c 6f 77 65 |ine y of| reFlowe|
|00002390| 64 54 65 78 74 0d 64 65 | 6c 65 74 65 20 63 68 61 |dText.de|lete cha|
|000023a0| 72 20 31 20 74 6f 20 28 | 74 68 65 20 6e 75 6d 62 |r 1 to (|the numb|
|000023b0| 65 72 20 6f 66 20 63 68 | 61 72 73 20 6f 66 20 6c |er of ch|ars of l|
|000023c0| 69 6e 65 20 79 20 6f 66 | 20 72 65 46 6c 6f 77 65 |ine y of| reFlowe|
|000023d0| 64 54 65 78 74 29 20 6f | 66 20 74 68 65 54 65 78 |dText) o|f theTex|
|000023e0| 74 0d 69 66 20 63 68 61 | 72 20 31 20 6f 66 20 74 |t.if cha|r 1 of t|
|000023f0| 68 65 54 65 78 74 20 69 | 73 20 72 65 74 75 72 6e |heText i|s return|
|00002400| 20 74 68 65 6e 20 64 65 | 6c 65 74 65 20 63 68 61 | then de|lete cha|
|00002410| 72 20 31 20 6f 66 20 74 | 68 65 54 65 78 74 0d 65 |r 1 of t|heText.e|
|00002420| 6e 64 20 69 66 0d 65 6e | 64 20 72 65 70 65 61 74 |nd if.en|d repeat|
|00002430| 0d 65 6e 64 20 69 66 0d | 69 66 20 74 68 65 20 6e |.end if.|if the n|
|00002440| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 6f |umber of| lines o|
|00002450| 66 20 74 68 65 54 65 78 | 74 20 3d 20 30 20 74 68 |f theTex|t = 0 th|
|00002460| 65 6e 0d 70 75 74 20 6c | 69 6e 65 20 31 20 74 6f |en.put l|ine 1 to|
|00002470| 20 74 6f 74 4c 69 6e 65 | 73 20 6f 66 20 72 65 46 | totLine|s of reF|
|00002480| 6c 6f 77 65 64 54 65 78 | 74 20 26 20 72 65 74 75 |lowedTex|t & retu|
|00002490| 72 6e 20 69 6e 74 6f 20 | 72 75 6e 41 72 6f 75 6e |rn into |runAroun|
|000024a0| 64 54 65 78 74 0d 65 6c | 73 65 0d 72 65 70 65 61 |dText.el|se.repea|
|000024b0| 74 20 77 69 74 68 20 77 | 20 3d 20 31 20 74 6f 20 |t with w| = 1 to |
|000024c0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 69 |the numb|er of li|
|000024d0| 6e 65 73 20 6f 66 20 74 | 68 65 54 65 78 74 0d 70 |nes of t|heText.p|
|000024e0| 75 74 20 77 6f 72 64 57 | 72 61 70 28 6c 69 6e 65 |ut wordW|rap(line|
|000024f0| 20 77 20 6f 66 20 74 68 | 65 54 65 78 74 2c 28 74 | w of th|eText,(t|
|00002500| 68 65 20 77 69 64 74 68 | 20 6f 66 20 66 6c 64 20 |he width| of fld |
|00002510| 22 42 6f 64 79 22 20 2d | 20 28 74 68 65 53 69 7a |"Body" -| (theSiz|
|00002520| 65 20 2b 20 31 30 29 29 | 2c 74 68 65 46 6f 6e 74 |e + 10))|,theFont|
|00002530| 2c 74 68 65 53 69 7a 65 | 2c 70 6c 61 69 6e 29 20 |,theSize|,plain) |
|00002540| 26 20 72 65 74 75 72 6e | 20 61 66 74 65 72 20 6f |& return| after o|
|00002550| 76 65 72 54 65 78 74 0d | 72 65 70 65 61 74 0d 69 |verText.|repeat.i|
|00002560| 66 20 63 68 61 72 20 31 | 20 6f 66 20 6c 69 6e 65 |f char 1| of line|
|00002570| 20 31 20 6f 66 20 6f 76 | 65 72 54 65 78 74 20 69 | 1 of ov|erText i|
|00002580| 73 20 22 20 22 20 74 68 | 65 6e 0d 64 65 6c 65 74 |s " " th|en.delet|
|00002590| 65 20 63 68 61 72 20 31 | 20 6f 66 20 6c 69 6e 65 |e char 1| of line|
|000025a0| 20 31 20 6f 66 20 6f 76 | 65 72 54 65 78 74 0d 65 | 1 of ov|erText.e|
|000025b0| 6c 73 65 0d 65 78 69 74 | 20 72 65 70 65 61 74 0d |lse.exit| repeat.|
|000025c0| 65 6e 64 20 69 66 0d 65 | 6e 64 20 72 65 70 65 61 |end if.e|nd repea|
|000025d0| 74 0d 70 75 74 20 6c 69 | 6e 65 20 31 20 74 6f 20 |t.put li|ne 1 to |
|000025e0| 74 6f 74 4c 69 6e 65 73 | 20 6f 66 20 72 65 46 6c |totLines| of reFl|
|000025f0| 6f 77 65 64 54 65 78 74 | 20 26 20 72 65 74 75 72 |owedText| & retur|
|00002600| 6e 20 26 20 6f 76 65 72 | 54 65 78 74 20 69 6e 74 |n & over|Text int|
|00002610| 6f 20 72 75 6e 41 72 6f | 75 6e 64 54 65 78 74 0d |o runAro|undText.|
|00002620| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |end repe|at.end i|
|00002630| 66 0d 72 65 74 75 72 6e | 20 72 75 6e 41 72 6f 75 |f.return| runArou|
|00002640| 6e 64 54 65 78 74 0d 65 | 6e 64 20 64 6f 52 75 6e |ndText.e|nd doRun|
|00002650| 41 72 6f 75 6e 64 0d 0d | 0d 66 75 6e 63 74 69 6f |Around..|.functio|
|00002660| 6e 20 66 6f 72 6d 61 74 | 54 65 78 74 20 77 68 61 |n format|Text wha|
|00002670| 74 54 65 78 74 0d 70 75 | 74 20 30 20 69 6e 74 6f |tText.pu|t 0 into|
|00002680| 20 74 68 65 49 6e 64 65 | 6e 74 73 0d 70 75 74 20 | theInde|nts.put |
|00002690| 30 20 69 6e 74 6f 20 74 | 68 65 52 65 74 75 72 6e |0 into t|heReturn|
|000026a0| 73 0d 72 65 70 65 61 74 | 20 77 68 69 6c 65 20 6f |s.repeat| while o|
|000026b0| 66 66 73 65 74 28 74 61 | 62 2c 77 68 61 74 54 65 |ffset(ta|b,whatTe|
|000026c0| 78 74 29 20 3c 3e 20 30 | 0d 69 66 20 63 68 61 72 |xt) <> 0|.if char|
|000026d0| 20 6f 66 66 73 65 74 28 | 74 61 62 2c 77 68 61 74 | offset(|tab,what|
|000026e0| 54 65 78 74 29 20 74 6f | 20 6f 66 66 73 65 74 28 |Text) to| offset(|
|000026f0| 74 61 62 2c 77 68 61 74 | 54 65 78 74 29 20 2b 20 |tab,what|Text) + |
|00002700| 35 20 6f 66 20 77 68 61 | 74 54 65 78 74 20 69 73 |5 of wha|tText is|
|00002710| 20 28 74 61 62 20 26 20 | 74 61 62 20 26 20 74 61 | (tab & |tab & ta|
|00002720| 62 20 26 20 74 61 62 20 | 26 20 74 61 62 20 26 20 |b & tab |& tab & |
|00002730| 74 61 62 29 20 74 68 65 | 6e 0d 70 75 74 20 22 5c |tab) the|n.put "\|
|00002740| 22 20 69 6e 74 6f 20 63 | 68 61 72 20 6f 66 66 73 |" into c|har offs|
|00002750| 65 74 28 74 61 62 2c 77 | 68 61 74 54 65 78 74 29 |et(tab,w|hatText)|
|00002760| 20 74 6f 20 6f 66 66 73 | 65 74 28 74 61 62 2c 77 | to offs|et(tab,w|
|00002770| 68 61 74 54 65 78 74 29 | 20 2b 20 35 20 6f 66 20 |hatText)| + 5 of |
|00002780| 77 68 61 74 54 65 78 74 | 0d 61 64 64 20 31 20 74 |whatText|.add 1 t|
|00002790| 6f 20 74 68 65 49 6e 64 | 65 6e 74 73 0d 65 6c 73 |o theInd|ents.els|
|000027a0| 65 0d 69 66 20 63 68 61 | 72 20 6f 66 66 73 65 74 |e.if cha|r offset|
|000027b0| 28 74 61 62 2c 77 68 61 | 74 54 65 78 74 29 20 2b |(tab,wha|tText) +|
|000027c0| 20 31 20 6f 66 20 77 68 | 61 74 54 65 78 74 20 69 | 1 of wh|atText i|
|000027d0| 73 20 72 65 74 75 72 6e | 20 74 68 65 6e 0d 70 75 |s return| then.pu|
|000027e0| 74 20 22 7c 22 20 69 6e | 74 6f 20 63 68 61 72 20 |t "|" in|to char |
|000027f0| 6f 66 66 73 65 74 28 74 | 61 62 2c 77 68 61 74 54 |offset(t|ab,whatT|
|00002800| 65 78 74 29 20 74 6f 20 | 6f 66 66 73 65 74 28 74 |ext) to |offset(t|
|00002810| 61 62 2c 77 68 61 74 54 | 65 78 74 29 20 2b 20 31 |ab,whatT|ext) + 1|
|00002820| 20 6f 66 20 77 68 61 74 | 54 65 78 74 0d 61 64 64 | of what|Text.add|
|00002830| 20 31 20 74 6f 20 74 68 | 65 52 65 74 75 72 6e 73 | 1 to th|eReturns|
|00002840| 0d 65 6c 73 65 0d 69 66 | 20 63 68 61 72 20 6f 66 |.else.if| char of|
|00002850| 66 73 65 74 28 74 61 62 | 2c 77 68 61 74 54 65 78 |fset(tab|,whatTex|
|00002860| 74 29 20 2b 20 31 20 6f | 66 20 77 68 61 74 54 65 |t) + 1 o|f whatTe|
|00002870| 78 74 20 69 73 20 74 61 | 62 20 74 68 65 6e 0d 72 |xt is ta|b then.r|
|00002880| 65 70 65 61 74 0d 69 66 | 20 63 68 61 72 20 6f 66 |epeat.if| char of|
|00002890| 66 73 65 74 28 74 61 62 | 2c 77 68 61 74 54 65 78 |fset(tab|,whatTex|
|000028a0| 74 29 20 2b 20 31 20 6f | 66 20 77 68 61 74 54 65 |t) + 1 o|f whatTe|
|000028b0| 78 74 20 69 73 20 6e 6f | 74 20 74 61 62 20 74 68 |xt is no|t tab th|
|000028c0| 65 6e 20 65 78 69 74 20 | 72 65 70 65 61 74 0d 64 |en exit |repeat.d|
|000028d0| 65 6c 65 74 65 20 63 68 | 61 72 20 6f 66 66 73 65 |elete ch|ar offse|
|000028e0| 74 28 74 61 62 2c 77 68 | 61 74 54 65 78 74 29 20 |t(tab,wh|atText) |
|000028f0| 2b 20 31 20 6f 66 20 77 | 68 61 74 54 65 78 74 0d |+ 1 of w|hatText.|
|00002900| 65 6e 64 20 72 65 70 65 | 61 74 0d 70 75 74 20 22 |end repe|at.put "|
|00002910| 5c 22 20 69 6e 74 6f 20 | 63 68 61 72 20 6f 66 66 |\" into |char off|
|00002920| 73 65 74 28 74 61 62 2c | 77 68 61 74 54 65 78 74 |set(tab,|whatText|
|00002930| 29 20 6f 66 20 77 68 61 | 74 54 65 78 74 0d 61 64 |) of wha|tText.ad|
|00002940| 64 20 31 20 74 6f 20 74 | 68 65 49 6e 64 65 6e 74 |d 1 to t|heIndent|
|00002950| 73 0d 65 6c 73 65 0d 70 | 75 74 20 22 7c 22 20 69 |s.else.p|ut "|" i|
|00002960| 6e 74 6f 20 63 68 61 72 | 20 6f 66 66 73 65 74 28 |nto char| offset(|
|00002970| 74 61 62 2c 77 68 61 74 | 54 65 78 74 29 20 6f 66 |tab,what|Text) of|
|00002980| 20 77 68 61 74 54 65 78 | 74 0d 61 64 64 20 31 20 | whatTex|t.add 1 |
|00002990| 74 6f 20 74 68 65 52 65 | 74 75 72 6e 73 0d 65 6e |to theRe|turns.en|
|000029a0| 64 20 69 66 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |d if.end| if.end |
|000029b0| 69 66 0d 70 75 74 20 22 | 4d 61 72 6b 69 6e 67 20 |if.put "|Marking |
|000029c0| 74 65 78 74 2c 20 70 6c | 65 61 73 65 20 73 74 61 |text, pl|ease sta|
|000029d0| 6e 64 20 62 79 2e 20 22 | 20 26 20 74 68 65 52 65 |nd by. "| & theRe|
|000029e0| 74 75 72 6e 73 20 26 20 | 22 20 72 65 74 75 72 6e |turns & |" return|
|000029f0| 73 2c 20 22 20 26 20 74 | 68 65 49 6e 64 65 6e 74 |s, " & t|heIndent|
|00002a00| 73 20 26 20 22 20 69 6e | 64 65 6e 74 73 2e 22 0d |s & " in|dents.".|
|00002a10| 65 6e 64 20 72 65 70 65 | 61 74 0d 70 75 74 20 22 |end repe|at.put "|
|00002a20| 52 65 2d 66 6f 72 6d 61 | 74 74 69 6e 67 20 74 65 |Re-forma|tting te|
|00002a30| 78 74 2c 20 70 6c 65 61 | 73 65 20 73 74 61 6e 64 |xt, plea|se stand|
|00002a40| 20 62 79 2e 22 0d 72 65 | 70 65 61 74 20 77 68 69 | by.".re|peat whi|
|00002a50| 6c 65 20 6f 66 66 73 65 | 74 28 22 7c 22 2c 77 68 |le offse|t("|",wh|
|00002a60| 61 74 54 65 78 74 29 20 | 3c 3e 20 30 0d 70 75 74 |atText) |<> 0.put|
|00002a70| 20 6f 66 66 73 65 74 28 | 22 7c 22 2c 77 68 61 74 | offset(|"|",what|
|00002a80| 54 65 78 74 29 20 69 6e | 74 6f 20 6e 65 78 74 53 |Text) in|to nextS|
|00002a90| 6c 61 73 68 0d 70 75 74 | 20 74 61 62 20 26 20 72 |lash.put| tab & r|
|00002aa0| 65 74 75 72 6e 20 69 6e | 74 6f 20 63 68 61 72 20 |eturn in|to char |
|00002ab0| 6e 65 78 74 53 6c 61 73 | 68 20 6f 66 20 77 68 61 |nextSlas|h of wha|
|00002ac0| 74 54 65 78 74 0d 69 66 | 20 63 68 61 72 20 6e 65 |tText.if| char ne|
|00002ad0| 78 74 53 6c 61 73 68 20 | 2b 20 32 20 6f 66 20 77 |xtSlash |+ 2 of w|
|00002ae0| 68 61 74 54 65 78 74 20 | 69 73 20 22 20 22 20 74 |hatText |is " " t|
|00002af0| 68 65 6e 20 64 65 6c 65 | 74 65 20 63 68 61 72 20 |hen dele|te char |
|00002b00| 6e 65 78 74 53 6c 61 73 | 68 20 2b 20 32 20 6f 66 |nextSlas|h + 2 of|
|00002b10| 20 77 68 61 74 54 65 78 | 74 0d 65 6e 64 20 72 65 | whatTex|t.end re|
|00002b20| 70 65 61 74 0d 72 65 70 | 65 61 74 20 77 68 69 6c |peat.rep|eat whil|
|00002b30| 65 20 6f 66 66 73 65 74 | 28 22 5c 22 2c 77 68 61 |e offset|("\",wha|
|00002b40| 74 54 65 78 74 29 20 3c | 3e 20 30 0d 70 75 74 20 |tText) <|> 0.put |
|00002b50| 6f 66 66 73 65 74 28 22 | 5c 22 2c 77 68 61 74 54 |offset("|\",whatT|
|00002b60| 65 78 74 29 20 69 6e 74 | 6f 20 6e 65 78 74 49 6e |ext) int|o nextIn|
|00002b70| 64 65 6e 74 0d 70 75 74 | 20 28 74 61 62 20 26 20 |dent.put| (tab & |
|00002b80| 74 61 62 20 26 20 74 61 | 62 20 26 20 74 61 62 20 |tab & ta|b & tab |
|00002b90| 26 20 74 61 62 20 26 20 | 74 61 62 29 20 69 6e 74 |& tab & |tab) int|
|00002ba0| 6f 20 63 68 61 72 20 6e | 65 78 74 49 6e 64 65 6e |o char n|extInden|
|00002bb0| 74 20 6f 66 20 77 68 61 | 74 54 65 78 74 0d 65 6e |t of wha|tText.en|
|00002bc0| 64 20 72 65 70 65 61 74 | 0d 72 65 74 75 72 6e 20 |d repeat|.return |
|00002bd0| 77 68 61 74 54 65 78 74 | 0d 65 6e 64 20 66 6f 72 |whatText|.end for|
|00002be0| 6d 61 74 54 65 78 74 0d | 0d 66 75 6e 63 74 69 6f |matText.|.functio|
|00002bf0| 6e 20 72 65 74 75 72 6e | 73 49 6e 20 77 68 61 74 |n return|sIn what|
|00002c00| 54 65 78 74 2c 74 68 65 | 46 6f 6e 74 2c 74 68 65 |Text,the|Font,the|
|00002c10| 53 69 7a 65 0d 70 75 74 | 20 65 6d 70 74 79 20 69 |Size.put| empty i|
|00002c20| 6e 74 6f 20 6e 65 77 54 | 65 78 74 0d 72 65 70 65 |nto newT|ext.repe|
|00002c30| 61 74 20 77 69 74 68 20 | 78 20 3d 20 31 20 74 6f |at with |x = 1 to|
|00002c40| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c | the num|ber of l|
|00002c50| 69 6e 65 73 20 6f 66 20 | 77 68 61 74 54 65 78 74 |ines of |whatText|
|00002c60| 0d 70 75 74 20 77 6f 72 | 64 57 72 61 70 28 6c 69 |.put wor|dWrap(li|
|00002c70| 6e 65 20 78 20 6f 66 20 | 77 68 61 74 54 65 78 74 |ne x of |whatText|
|00002c80| 2c 28 74 68 65 20 77 69 | 64 74 68 20 6f 66 20 66 |,(the wi|dth of f|
|00002c90| 6c 64 20 22 42 6f 64 79 | 22 20 2d 20 28 74 68 65 |ld "Body|" - (the|
|00002ca0| 53 69 7a 65 20 2b 20 31 | 30 29 29 2c 74 68 65 46 |Size + 1|0)),theF|
|00002cb0| 6f 6e 74 2c 74 68 65 53 | 69 7a 65 2c 70 6c 61 69 |ont,theS|ize,plai|
|00002cc0| 6e 29 20 26 20 72 65 74 | 75 72 6e 20 61 66 74 65 |n) & ret|urn afte|
|00002cd0| 72 20 6e 65 77 54 65 78 | 74 0d 65 6e 64 20 72 65 |r newTex|t.end re|
|00002ce0| 70 65 61 74 0d 72 65 74 | 75 72 6e 20 6e 65 77 54 |peat.ret|urn newT|
|00002cf0| 65 78 74 0d 65 6e 64 20 | 72 65 74 75 72 6e 73 49 |ext.end |returnsI|
|00002d00| 6e 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 6d 61 72 6b |n..funct|ion mark|
|00002d10| 52 65 74 75 72 6e 73 20 | 74 68 65 52 65 73 74 4f |Returns |theRestO|
|00002d20| 66 54 68 69 73 42 67 0d | 72 65 70 65 61 74 20 77 |fThisBg.|repeat w|
|00002d30| 68 69 6c 65 20 6f 66 66 | 73 65 74 28 72 65 74 75 |hile off|set(retu|
|00002d40| 72 6e 2c 74 68 65 52 65 | 73 74 4f 66 54 68 69 73 |rn,theRe|stOfThis|
|00002d50| 42 67 29 20 3c 3e 20 30 | 0d 70 75 74 20 22 7c 22 |Bg) <> 0|.put "|"|
|00002d60| 20 69 6e 74 6f 20 63 68 | 61 72 20 6f 66 66 73 65 | into ch|ar offse|
|00002d70| 74 28 72 65 74 75 72 6e | 2c 74 68 65 52 65 73 74 |t(return|,theRest|
|00002d80| 4f 66 54 68 69 73 42 67 | 29 20 6f 66 20 74 68 65 |OfThisBg|) of the|
|00002d90| 52 65 73 74 4f 66 54 68 | 69 73 42 67 0d 65 6e 64 |RestOfTh|isBg.end|
|00002da0| 20 72 65 70 65 61 74 0d | 72 65 74 75 72 6e 20 74 | repeat.|return t|
|00002db0| 68 65 52 65 73 74 4f 66 | 54 68 69 73 42 67 0d 65 |heRestOf|ThisBg.e|
|00002dc0| 6e 64 20 6d 61 72 6b 52 | 65 74 75 72 6e 73 0d 0d |nd markR|eturns..|
|00002dd0| 66 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |function| returns|
|00002de0| 4f 75 74 20 74 68 65 52 | 65 73 74 4f 66 54 68 69 |Out theR|estOfThi|
|00002df0| 73 42 67 0d 72 65 70 65 | 61 74 20 77 68 69 6c 65 |sBg.repe|at while|
|00002e00| 20 6f 66 66 73 65 74 28 | 72 65 74 75 72 6e 2c 74 | offset(|return,t|
|00002e10| 68 65 52 65 73 74 4f 66 | 54 68 69 73 42 67 29 20 |heRestOf|ThisBg) |
|00002e20| 3c 3e 20 30 0d 70 75 74 | 20 22 20 22 20 69 6e 74 |<> 0.put| " " int|
|00002e30| 6f 20 63 68 61 72 20 6f | 66 66 73 65 74 28 72 65 |o char o|ffset(re|
|00002e40| 74 75 72 6e 2c 74 68 65 | 52 65 73 74 4f 66 54 68 |turn,the|RestOfTh|
|00002e50| 69 73 42 67 29 20 6f 66 | 20 74 68 65 52 65 73 74 |isBg) of| theRest|
|00002e60| 4f 66 54 68 69 73 42 67 | 0d 65 6e 64 20 72 65 70 |OfThisBg|.end rep|
|00002e70| 65 61 74 0d 72 65 74 75 | 72 6e 20 74 68 65 52 65 |eat.retu|rn theRe|
|00002e80| 73 74 4f 66 54 68 69 73 | 42 67 0d 65 6e 64 20 72 |stOfThis|Bg.end r|
|00002e90| 65 74 75 72 6e 73 4f 75 | 74 0d 0d 0d 6f 6e 20 63 |eturnsOu|t...on c|
|00002ea0| 6f 6d 6d 61 6e 64 4b 65 | 79 44 6f 77 6e 20 77 68 |ommandKe|yDown wh|
|00002eb0| 69 63 68 4b 65 79 0d 69 | 66 20 77 68 69 63 68 4b |ichKey.i|f whichK|
|00002ec0| 65 79 20 69 73 20 69 6e | 20 22 45 2c 52 2c 4e 2c |ey is in| "E,R,N,|
|00002ed0| 49 2c 54 2c 55 22 20 74 | 68 65 6e 0d 69 66 20 77 |I,T,U" t|hen.if w|
|00002ee0| 68 69 63 68 4b 65 79 20 | 69 73 20 22 45 22 20 74 |hichKey |is "E" t|
|00002ef0| 68 65 6e 0d 74 65 78 74 | 49 6e 73 65 72 74 0d 65 |hen.text|Insert.e|
|00002f00| 78 69 74 20 63 6f 6d 6d | 61 6e 64 4b 65 79 44 6f |xit comm|andKeyDo|
|00002f10| 77 6e 0d 65 6e 64 20 69 | 66 0d 69 66 20 77 68 69 |wn.end i|f.if whi|
|00002f20| 63 68 4b 65 79 20 69 73 | 20 22 52 22 20 74 68 65 |chKey is| "R" the|
|00002f30| 6e 0d 72 65 46 6c 6f 77 | 57 69 74 68 53 74 79 6c |n.reFlow|WithStyl|
|00002f40| 65 0d 65 78 69 74 20 63 | 6f 6d 6d 61 6e 64 4b 65 |e.exit c|ommandKe|
|00002f50| 79 44 6f 77 6e 0d 65 6e | 64 20 69 66 0d 69 66 20 |yDown.en|d if.if |
|00002f60| 77 68 69 63 68 4b 65 79 | 20 69 73 20 22 4e 22 20 |whichKey| is "N" |
|00002f70| 74 68 65 6e 0d 63 72 65 | 61 74 65 43 68 61 70 74 |then.cre|ateChapt|
|00002f80| 65 72 0d 65 78 69 74 20 | 63 6f 6d 6d 61 6e 64 4b |er.exit |commandK|
|00002f90| 65 79 44 6f 77 6e 0d 65 | 6e 64 20 69 66 0d 69 66 |eyDown.e|nd if.if|
|00002fa0| 20 77 68 69 63 68 4b 65 | 79 20 69 73 20 22 54 22 | whichKe|y is "T"|
|00002fb0| 20 74 68 65 6e 0d 69 6d | 70 6f 72 74 54 65 78 74 | then.im|portText|
|00002fc0| 0d 65 78 69 74 20 63 6f | 6d 6d 61 6e 64 4b 65 79 |.exit co|mmandKey|
|00002fd0| 44 6f 77 6e 0d 65 6e 64 | 20 69 66 0d 69 66 20 77 |Down.end| if.if w|
|00002fe0| 68 69 63 68 4b 65 79 20 | 69 73 20 22 49 22 20 74 |hichKey |is "I" t|
|00002ff0| 68 65 6e 0d 6d 61 6b 65 | 49 6e 64 65 6e 74 0d 65 |hen.make|Indent.e|
|00003000| 78 69 74 20 63 6f 6d 6d | 61 6e 64 4b 65 79 44 6f |xit comm|andKeyDo|
|00003010| 77 6e 0d 65 6e 64 20 69 | 66 0d 69 66 20 77 68 69 |wn.end i|f.if whi|
|00003020| 63 68 4b 65 79 20 69 73 | 20 22 55 22 20 74 68 65 |chKey is| "U" the|
|00003030| 6e 0d 64 65 6c 65 74 65 | 49 6e 64 65 6e 74 0d 65 |n.delete|Indent.e|
|00003040| 78 69 74 20 63 6f 6d 6d | 61 6e 64 4b 65 79 44 6f |xit comm|andKeyDo|
|00003050| 77 6e 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 69 66 |wn.end i|f.end if|
|00003060| 0d 70 61 73 73 20 63 6f | 6d 6d 61 6e 64 4b 65 79 |.pass co|mmandKey|
|00003070| 44 6f 77 6e 0d 65 6e 64 | 20 63 6f 6d 6d 61 6e 64 |Down.end| command|
|00003080| 4b 65 79 44 6f 77 6e 0d | 0d 6f 6e 20 69 6d 70 6f |KeyDown.|.on impo|
|00003090| 72 74 54 65 78 74 0d 69 | 66 20 74 6f 6f 6c 73 53 |rtText.i|f toolsS|
|000030a0| 74 61 63 6b 28 29 20 74 | 68 65 6e 20 65 78 69 74 |tack() t|hen exit|
|000030b0| 20 69 6d 70 6f 72 74 54 | 65 78 74 0d 70 75 74 20 | importT|ext.put |
|000030c0| 74 68 65 20 76 69 73 69 | 62 6c 65 20 6f 66 20 6d |the visi|ble of m|
|000030d0| 73 67 20 69 6e 74 6f 20 | 6d 56 69 73 0d 61 6e 73 |sg into |mVis.ans|
|000030e0| 77 65 72 20 66 69 6c 65 | 20 22 43 68 6f 6f 73 65 |wer file| "Choose|
|000030f0| 20 61 20 74 65 78 74 20 | 66 69 6c 65 20 74 6f 20 | a text |file to |
|00003100| 69 6d 70 6f 72 74 22 20 | 6f 66 20 74 79 70 65 20 |import" |of type |
|00003110| 74 65 78 74 0d 69 66 20 | 69 74 20 69 73 20 65 6d |text.if |it is em|
|00003120| 70 74 79 20 74 68 65 6e | 20 65 78 69 74 20 69 6d |pty then| exit im|
|00003130| 70 6f 72 74 54 65 78 74 | 0d 70 75 74 20 69 74 20 |portText|.put it |
|00003140| 69 6e 74 6f 20 74 68 65 | 46 69 6c 65 0d 61 6e 73 |into the|File.ans|
|00003150| 77 65 72 20 22 49 6e 64 | 65 6e 74 20 70 61 72 61 |wer "Ind|ent para|
|00003160| 67 72 61 70 68 73 3f 22 | 20 77 69 74 68 20 22 4e |graphs?"| with "N|
|00003170| 6f 22 20 6f 72 20 22 49 | 6e 64 65 6e 74 22 0d 69 |o" or "I|ndent".i|
|00003180| 66 20 69 74 20 69 73 20 | 22 49 6e 64 65 6e 74 22 |f it is |"Indent"|
|00003190| 20 74 68 65 6e 20 70 75 | 74 20 74 72 75 65 20 69 | then pu|t true i|
|000031a0| 6e 74 6f 20 6d 61 6b 65 | 49 6e 64 65 6e 74 73 0d |nto make|Indents.|
|000031b0| 61 6e 73 77 65 72 20 22 | 53 74 72 69 70 20 72 65 |answer "|Strip re|
|000031c0| 74 75 72 6e 73 20 66 72 | 6f 6d 20 69 6d 70 6f 72 |turns fr|om impor|
|000031d0| 74 65 64 20 74 65 78 74 | 3f 22 20 77 69 74 68 20 |ted text|?" with |
|000031e0| 22 4e 6f 22 20 6f 72 20 | 22 59 65 73 22 0d 69 66 |"No" or |"Yes".if|
|000031f0| 20 69 74 20 69 73 20 22 | 59 65 73 22 20 74 68 65 | it is "|Yes" the|
|00003200| 6e 20 70 75 74 20 74 72 | 75 65 20 69 6e 74 6f 20 |n put tr|ue into |
|00003210| 64 65 52 65 74 75 72 6e | 0d 70 75 74 20 74 72 75 |deReturn|.put tru|
|00003220| 65 20 69 6e 74 6f 20 64 | 65 44 61 73 68 0d 6f 70 |e into d|eDash.op|
|00003230| 65 6e 20 66 69 6c 65 20 | 74 68 65 46 69 6c 65 0d |en file |theFile.|
|00003240| 70 75 74 20 22 52 65 61 | 64 69 6e 67 20 66 72 6f |put "Rea|ding fro|
|00003250| 6d 20 74 65 78 74 20 66 | 69 6c 65 2e 20 50 6c 65 |m text f|ile. Ple|
|00003260| 61 73 65 20 73 74 61 6e | 64 20 62 79 2e 22 0d 72 |ase stan|d by.".r|
|00003270| 65 70 65 61 74 20 66 6f | 72 65 76 65 72 0d 72 65 |epeat fo|rever.re|
|00003280| 61 64 20 66 72 6f 6d 20 | 66 69 6c 65 20 74 68 65 |ad from |file the|
|00003290| 46 69 6c 65 20 66 6f 72 | 20 31 36 30 30 30 0d 69 |File for| 16000.i|
|000032a0| 66 20 69 74 20 69 73 20 | 65 6d 70 74 79 20 74 68 |f it is |empty th|
|000032b0| 65 6e 20 65 78 69 74 20 | 72 65 70 65 61 74 0d 70 |en exit |repeat.p|
|000032c0| 75 74 20 69 74 20 61 66 | 74 65 72 20 74 68 65 54 |ut it af|ter theT|
|000032d0| 65 78 74 0d 69 66 20 74 | 68 65 20 6e 75 6d 62 65 |ext.if t|he numbe|
|000032e0| 72 20 6f 66 20 63 68 61 | 72 73 20 6f 66 20 74 68 |r of cha|rs of th|
|000032f0| 65 54 65 78 74 20 3e 3d | 20 33 32 30 30 30 20 74 |eText >=| 32000 t|
|00003300| 68 65 6e 0d 61 6e 73 77 | 65 72 20 22 46 69 6c 65 |hen.answ|er "File|
|00003310| 20 69 73 20 74 6f 6f 20 | 6c 6f 6e 67 20 66 6f 72 | is too |long for|
|00003320| 20 74 68 69 73 20 76 65 | 72 73 69 6f 6e 20 6f 66 | this ve|rsion of|
|00003330| 20 4d 61 67 4d 61 6b 65 | 72 20 74 6f 20 63 6f 6d | MagMake|r to com|
|00003340| 70 6c 65 74 65 6c 79 20 | 69 6d 70 6f 72 74 2e 20 |pletely |import. |
|00003350| 50 6c 65 61 73 65 20 22 | 20 26 20 c2 0d 22 73 70 |Please "| & .."sp|
|00003360| 6c 69 74 20 74 65 78 74 | 20 66 69 6c 65 20 69 6e |lit text| file in|
|00003370| 74 6f 20 73 6d 61 6c 6c | 65 72 20 63 68 61 70 74 |to small|er chapt|
|00003380| 65 72 73 20 62 65 66 6f | 72 65 20 69 6d 70 6f 72 |ers befo|re impor|
|00003390| 74 69 6e 67 2e 22 0d 63 | 6c 6f 73 65 20 66 69 6c |ting.".c|lose fil|
|000033a0| 65 20 74 68 65 46 69 6c | 65 0d 65 78 69 74 20 69 |e theFil|e.exit i|
|000033b0| 6d 70 6f 72 74 54 65 78 | 74 0d 65 6e 64 20 69 66 |mportTex|t.end if|
|000033c0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 70 75 74 20 |.end rep|eat.put |
|000033d0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 68 |the numb|er of ch|
|000033e0| 61 72 73 20 6f 66 20 74 | 68 65 54 65 78 74 20 26 |ars of t|heText &|
|000033f0| 20 22 20 63 68 61 72 61 | 63 74 65 72 73 20 6f 66 | " chara|cters of|
|00003400| 20 61 20 6d 61 78 69 6d | 75 6d 20 6f 66 20 33 32 | a maxim|um of 32|
|00003410| 30 30 30 20 69 6d 70 6f | 72 74 65 64 2e 22 0d 77 |000 impo|rted.".w|
|00003420| 61 69 74 20 32 20 73 65 | 63 73 0d 63 6c 6f 73 65 |ait 2 se|cs.close|
|00003430| 20 66 69 6c 65 20 74 68 | 65 46 69 6c 65 0d 69 66 | file th|eFile.if|
|00003440| 20 6d 61 6b 65 49 6e 64 | 65 6e 74 73 20 69 73 20 | makeInd|ents is |
|00003450| 74 72 75 65 20 74 68 65 | 6e 20 70 75 74 20 6d 61 |true the|n put ma|
|00003460| 72 6b 49 6e 64 65 6e 74 | 73 28 74 68 65 54 65 78 |rkIndent|s(theTex|
|00003470| 74 29 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 0d |t) into |theText.|
|00003480| 72 65 70 65 61 74 20 77 | 68 69 6c 65 20 6f 66 66 |repeat w|hile off|
|00003490| 73 65 74 28 74 61 62 2c | 74 68 65 54 65 78 74 29 |set(tab,|theText)|
|000034a0| 20 3c 3e 20 30 0d 70 75 | 74 20 22 20 22 20 69 6e | <> 0.pu|t " " in|
|000034b0| 74 6f 20 63 68 61 72 20 | 6f 66 66 73 65 74 28 74 |to char |offset(t|
|000034c0| 61 62 2c 74 68 65 54 65 | 78 74 29 20 6f 66 20 74 |ab,theTe|xt) of t|
|000034d0| 68 65 54 65 78 74 0d 65 | 6e 64 20 72 65 70 65 61 |heText.e|nd repea|
|000034e0| 74 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 70 75 |t.lock s|creen.pu|
|000034f0| 74 20 22 43 6c 65 61 6e | 69 6e 67 20 75 70 20 69 |t "Clean|ing up i|
|00003500| 6d 70 6f 72 74 65 64 20 | 74 65 78 74 2e 20 30 25 |mported |text. 0%|
|00003510| 20 63 6f 6d 70 6c 65 74 | 65 2e 22 0d 73 65 74 20 | complet|e.".set |
|00003520| 6e 75 6d 62 65 72 46 6f | 72 6d 61 74 20 74 6f 20 |numberFo|rmat to |
|00003530| 22 30 30 22 0d 70 75 74 | 20 74 68 65 20 6e 75 6d |"00".put| the num|
|00003540| 62 65 72 20 6f 66 20 63 | 68 61 72 73 20 6f 66 20 |ber of c|hars of |
|00003550| 74 68 65 54 65 78 74 20 | 69 6e 74 6f 20 64 69 76 |theText |into div|
|00003560| 54 6f 70 0d 72 65 70 65 | 61 74 0d 70 75 74 20 74 |Top.repe|at.put t|
|00003570| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |he numbe|r of cha|
|00003580| 72 73 20 6f 66 20 74 68 | 65 54 65 78 74 20 69 6e |rs of th|eText in|
|00003590| 74 6f 20 74 6f 74 43 68 | 61 72 73 0d 69 66 20 74 |to totCh|ars.if t|
|000035a0| 6f 74 43 68 61 72 73 20 | 3e 20 31 30 30 30 20 74 |otChars |> 1000 t|
|000035b0| 68 65 6e 0d 70 75 74 20 | 28 31 20 2d 20 28 28 74 |hen.put |(1 - ((t|
|000035c0| 6f 74 43 68 61 72 73 20 | 2d 20 31 30 30 30 29 2f |otChars |- 1000)/|
|000035d0| 64 69 76 54 6f 70 29 29 | 20 2a 20 31 30 30 20 69 |divTop))| * 100 i|
|000035e0| 6e 74 6f 20 74 68 65 50 | 65 72 63 65 6e 74 0d 70 |nto theP|ercent.p|
|000035f0| 75 74 20 22 43 6c 65 61 | 6e 69 6e 67 20 75 70 20 |ut "Clea|ning up |
|00003600| 69 6d 70 6f 72 74 65 64 | 20 74 65 78 74 2e 20 22 |imported| text. "|
|00003610| 20 26 20 74 68 65 50 65 | 72 63 65 6e 74 20 26 20 | & thePe|rcent & |
|00003620| 22 25 20 63 6f 6d 70 6c | 65 74 65 2e 22 0d 70 75 |"% compl|ete.".pu|
|00003630| 74 20 63 68 61 72 20 31 | 20 74 6f 20 31 30 30 30 |t char 1| to 1000|
|00003640| 20 6f 66 20 74 68 65 54 | 65 78 74 20 69 6e 74 6f | of theT|ext into|
|00003650| 20 73 74 72 69 70 54 65 | 78 74 0d 69 66 20 64 65 | stripTe|xt.if de|
|00003660| 52 65 74 75 72 6e 20 69 | 73 20 6e 6f 74 20 74 72 |Return i|s not tr|
|00003670| 75 65 20 74 68 65 6e 0d | 69 66 20 64 65 44 61 73 |ue then.|if deDas|
|00003680| 68 20 69 73 20 74 72 75 | 65 20 74 68 65 6e 0d 70 |h is tru|e then.p|
|00003690| 75 74 20 63 6c 65 61 6e | 44 61 73 68 65 73 28 73 |ut clean|Dashes(s|
|000036a0| 74 72 69 70 54 65 78 74 | 29 20 69 6e 74 6f 20 73 |tripText|) into s|
|000036b0| 74 72 69 70 54 65 78 74 | 0d 65 6e 64 20 69 66 0d |tripText|.end if.|
|000036c0| 70 75 74 20 6d 61 72 6b | 52 65 74 75 72 6e 73 28 |put mark|Returns(|
|000036d0| 73 74 72 69 70 54 65 78 | 74 29 20 69 6e 74 6f 20 |stripTex|t) into |
|000036e0| 73 74 72 69 70 54 65 78 | 74 0d 70 75 74 20 66 61 |stripTex|t.put fa|
|000036f0| 73 74 53 74 72 69 70 53 | 70 61 63 65 73 28 73 74 |stStripS|paces(st|
|00003700| 72 69 70 54 65 78 74 29 | 20 61 66 74 65 72 20 63 |ripText)| after c|
|00003710| 6c 65 61 6e 54 65 78 74 | 0d 65 6c 73 65 0d 70 75 |leanText|.else.pu|
|00003720| 74 20 72 65 74 75 72 6e | 73 4f 75 74 28 73 74 72 |t return|sOut(str|
|00003730| 69 70 54 65 78 74 29 20 | 69 6e 74 6f 20 73 74 72 |ipText) |into str|
|00003740| 69 70 54 65 78 74 0d 69 | 66 20 64 65 44 61 73 68 |ipText.i|f deDash|
|00003750| 20 69 73 20 74 72 75 65 | 20 74 68 65 6e 0d 70 75 | is true| then.pu|
|00003760| 74 20 63 6c 65 61 6e 44 | 61 73 68 65 73 28 73 74 |t cleanD|ashes(st|
|00003770| 72 69 70 54 65 78 74 29 | 20 69 6e 74 6f 20 73 74 |ripText)| into st|
|00003780| 72 69 70 54 65 78 74 0d | 65 6e 64 20 69 66 0d 70 |ripText.|end if.p|
|00003790| 75 74 20 66 61 73 74 53 | 74 72 69 70 53 70 61 63 |ut fastS|tripSpac|
|000037a0| 65 73 28 73 74 72 69 70 | 54 65 78 74 29 20 61 66 |es(strip|Text) af|
|000037b0| 74 65 72 20 63 6c 65 61 | 6e 54 65 78 74 0d 65 6e |ter clea|nText.en|
|000037c0| 64 20 69 66 0d 64 65 6c | 65 74 65 20 63 68 61 72 |d if.del|ete char|
|000037d0| 20 31 20 74 6f 20 31 30 | 30 30 20 6f 66 20 74 68 | 1 to 10|00 of th|
|000037e0| 65 54 65 78 74 0d 65 6c | 73 65 0d 70 75 74 20 63 |eText.el|se.put c|
|000037f0| 68 61 72 20 31 20 74 6f | 20 28 74 68 65 20 6e 75 |har 1 to| (the nu|
|00003800| 6d 62 65 72 20 6f 66 20 | 63 68 61 72 73 20 6f 66 |mber of |chars of|
|00003810| 20 74 68 65 54 65 78 74 | 29 20 6f 66 20 74 68 65 | theText|) of the|
|00003820| 54 65 78 74 20 69 6e 74 | 6f 20 73 74 72 69 70 54 |Text int|o stripT|
|00003830| 65 78 74 0d 69 66 20 64 | 65 52 65 74 75 72 6e 20 |ext.if d|eReturn |
|00003840| 69 73 20 6e 6f 74 20 74 | 72 75 65 20 74 68 65 6e |is not t|rue then|
|00003850| 0d 69 66 20 64 65 44 61 | 73 68 20 69 73 20 74 72 |.if deDa|sh is tr|
|00003860| 75 65 20 74 68 65 6e 0d | 70 75 74 20 63 6c 65 61 |ue then.|put clea|
|00003870| 6e 44 61 73 68 65 73 28 | 73 74 72 69 70 54 65 78 |nDashes(|stripTex|
|00003880| 74 29 20 69 6e 74 6f 20 | 73 74 72 69 70 54 65 78 |t) into |stripTex|
|00003890| 74 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 6d 61 72 |t.end if|.put mar|
|000038a0| 6b 52 65 74 75 72 6e 73 | 28 73 74 72 69 70 54 65 |kReturns|(stripTe|
|000038b0| 78 74 29 20 69 6e 74 6f | 20 73 74 72 69 70 54 65 |xt) into| stripTe|
|000038c0| 78 74 0d 70 75 74 20 66 | 61 73 74 53 74 72 69 70 |xt.put f|astStrip|
|000038d0| 53 70 61 63 65 73 28 73 | 74 72 69 70 54 65 78 74 |Spaces(s|tripText|
|000038e0| 29 20 61 66 74 65 72 20 | 63 6c 65 61 6e 54 65 78 |) after |cleanTex|
|000038f0| 74 0d 65 6c 73 65 0d 70 | 75 74 20 72 65 74 75 72 |t.else.p|ut retur|
|00003900| 6e 73 4f 75 74 28 73 74 | 72 69 70 54 65 78 74 29 |nsOut(st|ripText)|
|00003910| 20 69 6e 74 6f 20 73 74 | 72 69 70 54 65 78 74 0d | into st|ripText.|
|00003920| 69 66 20 64 65 44 61 73 | 68 20 69 73 20 74 72 75 |if deDas|h is tru|
|00003930| 65 20 74 68 65 6e 0d 70 | 75 74 20 63 6c 65 61 6e |e then.p|ut clean|
|00003940| 44 61 73 68 65 73 28 73 | 74 72 69 70 54 65 78 74 |Dashes(s|tripText|
|00003950| 29 20 69 6e 74 6f 20 73 | 74 72 69 70 54 65 78 74 |) into s|tripText|
|00003960| 0d 65 6e 64 20 69 66 0d | 70 75 74 20 66 61 73 74 |.end if.|put fast|
|00003970| 53 74 72 69 70 53 70 61 | 63 65 73 28 73 74 72 69 |StripSpa|ces(stri|
|00003980| 70 54 65 78 74 29 20 61 | 66 74 65 72 20 63 6c 65 |pText) a|fter cle|
|00003990| 61 6e 54 65 78 74 0d 65 | 6e 64 20 69 66 0d 65 78 |anText.e|nd if.ex|
|000039a0| 69 74 20 72 65 70 65 61 | 74 0d 65 6e 64 20 69 66 |it repea|t.end if|
|000039b0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 73 65 74 20 |.end rep|eat.set |
|000039c0| 6e 75 6d 62 65 72 46 6f | 72 6d 61 74 20 74 6f 20 |numberFo|rmat to |
|000039d0| 22 30 22 0d 70 75 74 20 | 65 6d 70 74 79 20 69 6e |"0".put |empty in|
|000039e0| 74 6f 20 6d 73 67 0d 73 | 65 74 20 74 68 65 20 76 |to msg.s|et the v|
|000039f0| 69 73 69 62 6c 65 20 6f | 66 20 6d 73 67 20 74 6f |isible o|f msg to|
|00003a00| 20 6d 56 69 73 0d 64 6f | 55 70 64 61 74 65 20 63 | mVis.do|Update c|
|00003a10| 6c 65 61 6e 54 65 78 74 | 0d 75 6e 6c 6f 63 6b 20 |leanText|.unlock |
|00003a20| 73 63 72 65 65 6e 0d 65 | 6e 64 20 69 6d 70 6f 72 |screen.e|nd impor|
|00003a30| 74 54 65 78 74 0d 0d 0d | 6f 6e 20 65 78 70 6f 72 |tText...|on expor|
|00003a40| 74 54 65 78 74 0d 69 66 | 20 74 6f 6f 6c 73 53 74 |tText.if| toolsSt|
|00003a50| 61 63 6b 28 29 20 74 68 | 65 6e 20 65 78 69 74 20 |ack() th|en exit |
|00003a60| 65 78 70 6f 72 74 54 65 | 78 74 0d 70 75 74 20 74 |exportTe|xt.put t|
|00003a70| 68 65 20 76 69 73 69 62 | 6c 65 20 6f 66 20 6d 73 |he visib|le of ms|
|00003a80| 67 20 69 6e 74 6f 20 6d | 56 69 73 0d 61 6e 73 77 |g into m|Vis.answ|
|00003a90| 65 72 20 22 45 78 70 6f | 72 74 20 61 6c 6c 20 63 |er "Expo|rt all c|
|00003aa0| 6f 70 79 20 6f 72 20 6a | 75 73 74 20 74 68 69 73 |opy or j|ust this|
|00003ab0| 20 63 68 61 70 74 65 72 | 3f 22 20 77 69 74 68 20 | chapter|?" with |
|00003ac0| 22 43 61 6e 63 65 6c 22 | 20 6f 72 20 22 41 6c 6c |"Cancel"| or "All|
|00003ad0| 22 20 6f 72 20 22 43 68 | 61 70 74 65 72 22 0d 69 |" or "Ch|apter".i|
|00003ae0| 66 20 69 74 20 69 73 20 | 22 43 61 6e 63 65 6c 22 |f it is |"Cancel"|
|00003af0| 20 6f 72 20 74 68 65 20 | 72 65 73 75 6c 74 20 69 | or the |result i|
|00003b00| 73 20 22 43 61 6e 63 65 | 6c 22 20 74 68 65 6e 20 |s "Cance|l" then |
|00003b10| 65 78 69 74 20 65 78 70 | 6f 72 74 54 65 78 74 0d |exit exp|ortText.|
|00003b20| 70 75 74 20 69 74 20 69 | 6e 74 6f 20 74 68 65 41 |put it i|nto theA|
|00003b30| 6e 73 77 65 72 0d 61 6e | 73 77 65 72 20 66 69 6c |nswer.an|swer fil|
|00003b40| 65 20 22 43 68 6f 6f 73 | 65 20 61 20 74 65 78 74 |e "Choos|e a text|
|00003b50| 20 66 69 6c 65 20 69 6e | 74 6f 20 77 68 69 63 68 | file in|to which|
|00003b60| 20 79 6f 75 20 77 69 73 | 68 20 74 6f 20 65 78 70 | you wis|h to exp|
|00003b70| 6f 72 74 22 20 6f 66 20 | 74 79 70 65 20 74 65 78 |ort" of |type tex|
|00003b80| 74 20 6f 72 20 22 58 44 | 4f 43 22 0d 69 66 20 69 |t or "XD|OC".if i|
|00003b90| 74 20 69 73 20 65 6d 70 | 74 79 20 74 68 65 6e 20 |t is emp|ty then |
|00003ba0| 65 78 69 74 20 65 78 70 | 6f 72 74 54 65 78 74 0d |exit exp|ortText.|
|00003bb0| 70 75 74 20 69 74 20 69 | 6e 74 6f 20 74 68 65 46 |put it i|nto theF|
|00003bc0| 69 6c 65 0d 70 75 74 20 | 66 6c 64 20 22 41 72 74 |ile.put |fld "Art|
|00003bd0| 69 63 6c 65 4e 61 6d 65 | 22 20 69 6e 74 6f 20 74 |icleName|" into t|
|00003be0| 68 69 73 43 68 61 70 74 | 0d 6f 70 65 6e 20 66 69 |hisChapt|.open fi|
|00003bf0| 6c 65 20 74 68 65 46 69 | 6c 65 0d 6c 6f 63 6b 20 |le theFi|le.lock |
|00003c00| 6d 65 73 73 61 67 65 73 | 0d 69 66 20 74 68 65 41 |messages|.if theA|
|00003c10| 6e 73 77 65 72 20 69 73 | 20 22 43 68 61 70 74 65 |nswer is| "Chapte|
|00003c20| 72 22 20 74 68 65 6e 0d | 75 6e 6d 61 72 6b 20 61 |r" then.|unmark a|
|00003c30| 6c 6c 20 63 64 73 0d 6d | 61 72 6b 20 63 64 73 20 |ll cds.m|ark cds |
|00003c40| 77 68 65 72 65 20 66 6c | 64 20 22 41 72 74 69 63 |where fl|d "Artic|
|00003c50| 6c 65 4e 61 6d 65 22 20 | 69 73 20 74 68 69 73 43 |leName" |is thisC|
|00003c60| 68 61 70 74 0d 67 6f 20 | 66 69 72 73 74 20 6d 61 |hapt.go |first ma|
|00003c70| 72 6b 65 64 20 63 64 0d | 65 6c 73 65 0d 6d 61 72 |rked cd.|else.mar|
|00003c80| 6b 20 61 6c 6c 20 63 64 | 73 0d 67 6f 20 63 64 20 |k all cd|s.go cd |
|00003c90| 22 48 65 6c 70 22 0d 70 | 75 74 20 22 45 78 70 6f |"Help".p|ut "Expo|
|00003ca0| 72 74 69 6e 67 20 63 6f | 70 79 72 69 67 68 74 20 |rting co|pyright |
|00003cb0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 22 0d 70 75 |informat|ion.".pu|
|00003cc0| 74 20 63 64 20 66 6c 64 | 20 22 41 62 6f 75 74 42 |t cd fld| "AboutB|
|00003cd0| 6f 6f 6b 4d 61 6b 65 72 | 22 20 26 20 72 65 74 75 |ookMaker|" & retu|
|00003ce0| 72 6e 20 26 20 72 65 74 | 75 72 6e 20 69 6e 74 6f |rn & ret|urn into|
|00003cf0| 20 63 72 65 64 69 74 54 | 65 78 74 0d 77 72 69 74 | creditT|ext.writ|
|00003d00| 65 20 63 72 65 64 69 74 | 54 65 78 74 20 26 20 72 |e credit|Text & r|
|00003d10| 65 74 75 72 6e 20 74 6f | 20 66 69 6c 65 20 74 68 |eturn to| file th|
|00003d20| 65 46 69 6c 65 0d 67 6f | 20 63 64 20 22 54 61 62 |eFile.go| cd "Tab|
|00003d30| 6c 65 20 6f 66 20 43 6f | 6e 74 65 6e 74 73 22 0d |le of Co|ntents".|
|00003d40| 67 6f 20 6e 65 78 74 0d | 70 75 74 20 66 6c 64 20 |go next.|put fld |
|00003d50| 22 41 72 74 69 63 6c 65 | 4e 61 6d 65 22 20 69 6e |"Article|Name" in|
|00003d60| 74 6f 20 74 68 69 73 43 | 68 61 70 74 0d 65 6e 64 |to thisC|hapt.end|
|00003d70| 20 69 66 0d 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d | if.lock| screen.|
|00003d80| 72 65 70 65 61 74 20 77 | 69 74 68 20 78 20 3d 20 |repeat w|ith x = |
|00003d90| 31 20 74 6f 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |1 to the| number |
|00003da0| 6f 66 20 6d 61 72 6b 65 | 64 20 63 64 73 0d 70 75 |of marke|d cds.pu|
|00003db0| 74 20 22 45 78 70 6f 72 | 74 69 6e 67 20 22 20 26 |t "Expor|ting " &|
|00003dc0| 20 74 68 69 73 43 68 61 | 70 74 20 26 20 22 20 d0 | thisCha|pt & " .|
|00003dd0| 20 50 61 67 65 20 22 20 | 26 20 66 6c 64 20 22 50 | Page " |& fld "P|
|00003de0| 61 67 65 20 4e 75 6d 22 | 0d 70 75 74 20 66 6c 64 |age Num"|.put fld|
|00003df0| 20 22 42 6f 64 79 22 20 | 69 6e 74 6f 20 6f 6c 64 | "Body" |into old|
|00003e00| 54 65 78 74 0d 70 75 74 | 20 72 65 74 75 72 6e 73 |Text.put| returns|
|00003e10| 4f 75 74 28 6f 6c 64 54 | 65 78 74 29 20 69 6e 74 |Out(oldT|ext) int|
|00003e20| 6f 20 6e 65 77 54 65 78 | 74 0d 70 75 74 20 66 61 |o newTex|t.put fa|
|00003e30| 73 74 53 74 72 69 70 53 | 70 61 63 65 73 28 6e 65 |stStripS|paces(ne|
|00003e40| 77 54 65 78 74 29 20 69 | 6e 74 6f 20 6e 65 77 54 |wText) i|nto newT|
|00003e50| 65 78 74 0d 70 75 74 20 | 66 6f 72 6d 61 74 54 65 |ext.put |formatTe|
|00003e60| 78 74 28 6e 65 77 54 65 | 78 74 29 20 69 6e 74 6f |xt(newTe|xt) into|
|00003e70| 20 72 65 46 6c 6f 77 4f | 75 74 0d 70 75 74 20 72 | reFlowO|ut.put r|
|00003e80| 65 46 6c 6f 77 4f 75 74 | 20 61 66 74 65 72 20 74 |eFlowOut| after t|
|00003e90| 68 65 54 65 78 74 0d 67 | 6f 20 6e 65 78 74 20 6d |heText.g|o next m|
|00003ea0| 61 72 6b 65 64 20 63 64 | 0d 77 72 69 74 65 20 74 |arked cd|.write t|
|00003eb0| 68 65 54 65 78 74 20 74 | 6f 20 66 69 6c 65 20 74 |heText t|o file t|
|00003ec0| 68 65 46 69 6c 65 0d 69 | 66 20 66 6c 64 20 22 41 |heFile.i|f fld "A|
|00003ed0| 72 74 69 63 6c 65 4e 61 | 6d 65 22 20 ad 20 74 68 |rticleNa|me" . th|
|00003ee0| 69 73 43 68 61 70 74 20 | 74 68 65 6e 0d 77 72 69 |isChapt |then.wri|
|00003ef0| 74 65 20 72 65 74 75 72 | 6e 20 26 20 72 65 74 75 |te retur|n & retu|
|00003f00| 72 6e 20 74 6f 20 66 69 | 6c 65 20 74 68 65 46 69 |rn to fi|le theFi|
|00003f10| 6c 65 0d 70 75 74 20 66 | 6c 64 20 22 41 72 74 69 |le.put f|ld "Arti|
|00003f20| 63 6c 65 4e 61 6d 65 22 | 20 69 6e 74 6f 20 74 68 |cleName"| into th|
|00003f30| 69 73 43 68 61 70 74 0d | 65 6e 64 20 69 66 0d 70 |isChapt.|end if.p|
|00003f40| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 74 68 |ut empty| into th|
|00003f50| 65 54 65 78 74 0d 69 66 | 20 74 68 65 20 6e 75 6d |eText.if| the num|
|00003f60| 62 65 72 20 6f 66 20 74 | 68 69 73 20 63 64 20 69 |ber of t|his cd i|
|00003f70| 73 20 31 20 74 68 65 6e | 20 65 78 69 74 20 72 65 |s 1 then| exit re|
|00003f80| 70 65 61 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |peat.end| repeat.|
|00003f90| 63 6c 6f 73 65 20 66 69 | 6c 65 20 74 68 65 46 69 |close fi|le theFi|
|00003fa0| 6c 65 0d 70 75 74 20 22 | 45 78 70 6f 72 74 20 63 |le.put "|Export c|
|00003fb0| 6f 6d 70 6c 65 74 65 2e | 22 0d 77 61 69 74 20 31 |omplete.|".wait 1|
|00003fc0| 20 73 65 63 0d 73 65 74 | 20 74 68 65 20 76 69 73 | sec.set| the vis|
|00003fd0| 69 62 6c 65 20 6f 66 20 | 6d 73 67 20 74 6f 20 6d |ible of |msg to m|
|00003fe0| 56 69 73 0d 65 6e 64 20 | 65 78 70 6f 72 74 54 65 |Vis.end |exportTe|
|00003ff0| 78 74 0d 0d 6f 6e 20 6f | 70 65 6e 4d 61 67 4d 61 |xt..on o|penMagMa|
|00004000| 6b 65 72 0d 69 66 20 74 | 6f 6f 6c 73 53 74 61 63 |ker.if t|oolsStac|
|00004010| 6b 28 29 20 74 68 65 6e | 20 65 78 69 74 20 6f 70 |k() then| exit op|
|00004020| 65 6e 4d 61 67 4d 61 6b | 65 72 0d 69 66 20 74 68 |enMagMak|er.if th|
|00004030| 65 72 65 20 69 73 20 61 | 20 6d 65 6e 75 20 22 4d |ere is a| menu "M|
|00004040| 61 67 4d 61 6b 65 72 22 | 20 74 68 65 6e 0d 73 65 |agMaker"| then.se|
|00004050| 74 20 74 68 65 20 63 68 | 65 63 6b 4d 61 72 6b 20 |t the ch|eckMark |
|00004060| 6f 66 20 6d 65 6e 75 49 | 74 65 6d 20 31 20 6f 66 |of menuI|tem 1 of|
|00004070| 20 6d 65 6e 75 20 22 4c | 61 79 6f 75 74 22 20 74 | menu "L|ayout" t|
|00004080| 6f 20 66 61 6c 73 65 0d | 73 65 74 20 74 68 65 20 |o false.|set the |
|00004090| 6c 6f 63 6b 54 65 78 74 | 20 6f 66 20 66 6c 64 20 |lockText| of fld |
|000040a0| 22 42 6f 64 79 22 20 74 | 6f 20 74 72 75 65 0d 73 |"Body" t|o true.s|
|000040b0| 65 74 20 74 68 65 20 6c | 6f 63 6b 54 65 78 74 20 |et the l|ockText |
|000040c0| 6f 66 20 66 6c 64 20 22 | 41 72 74 69 63 6c 65 4e |of fld "|ArticleN|
|000040d0| 61 6d 65 22 20 74 6f 20 | 74 72 75 65 0d 6f 70 65 |ame" to |true.ope|
|000040e0| 6e 73 74 61 63 6b 20 66 | 61 6c 73 65 0d 65 6c 73 |nstack f|alse.els|
|000040f0| 65 0d 6f 70 65 6e 73 74 | 61 63 6b 20 74 72 75 65 |e.openst|ack true|
|00004100| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 6f 70 65 6e |.end if.|end open|
|00004110| 4d 61 67 4d 61 6b 65 72 | 0d 0d 0d 6f 6e 20 6d 61 |MagMaker|...on ma|
|00004120| 67 4d 61 6b 65 72 4d 65 | 6e 75 73 0d 69 66 20 74 |gMakerMe|nus.if t|
|00004130| 6f 6f 6c 73 53 74 61 63 | 6b 28 29 20 74 68 65 6e |oolsStac|k() then|
|00004140| 20 65 78 69 74 20 6d 61 | 67 4d 61 6b 65 72 4d 65 | exit ma|gMakerMe|
|00004150| 6e 75 73 0d 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d |nus.lock| screen.|
|00004160| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 6d 65 |if there| is a me|
|00004170| 6e 75 20 22 4d 61 67 4d | 61 6b 65 72 22 20 74 68 |nu "MagM|aker" th|
|00004180| 65 6e 20 65 78 69 74 20 | 6d 61 67 4d 61 6b 65 72 |en exit |magMaker|
|00004190| 4d 65 6e 75 73 0d 63 72 | 65 61 74 65 20 6d 65 6e |Menus.cr|eate men|
|000041a0| 75 20 22 4c 61 79 6f 75 | 74 22 0d 70 75 74 20 6d |u "Layou|t".put m|
|000041b0| 61 67 54 65 78 74 49 74 | 65 6d 73 28 29 20 69 6e |agTextIt|ems() in|
|000041c0| 74 6f 20 6d 65 6e 75 20 | 22 4c 61 79 6f 75 74 22 |to menu |"Layout"|
|000041d0| 20 77 69 74 68 20 6d 65 | 6e 75 4d 73 67 20 6d 61 | with me|nuMsg ma|
|000041e0| 67 54 65 78 74 4d 73 67 | 73 28 29 0d 73 65 74 20 |gTextMsg|s().set |
|000041f0| 63 6f 6d 6d 61 6e 64 43 | 68 61 72 20 6f 66 20 6d |commandC|har of m|
|00004200| 65 6e 75 49 74 65 6d 20 | 31 20 6f 66 20 6d 65 6e |enuItem |1 of men|
|00004210| 75 20 22 4c 61 79 6f 75 | 74 22 20 74 6f 20 22 45 |u "Layou|t" to "E|
|00004220| 22 0d 73 65 74 20 63 6f | 6d 6d 61 6e 64 43 68 61 |".set co|mmandCha|
|00004230| 72 20 6f 66 20 6d 65 6e | 75 49 74 65 6d 20 32 20 |r of men|uItem 2 |
|00004240| 6f 66 20 6d 65 6e 75 20 | 22 4c 61 79 6f 75 74 22 |of menu |"Layout"|
|00004250| 20 74 6f 20 22 52 22 0d | 73 65 74 20 63 6f 6d 6d | to "R".|set comm|
|00004260| 61 6e 64 43 68 61 72 20 | 6f 66 20 6d 65 6e 75 49 |andChar |of menuI|
|00004270| 74 65 6d 20 22 4d 61 6b | 65 20 49 6e 64 65 6e 74 |tem "Mak|e Indent|
|00004280| 22 20 6f 66 20 6d 65 6e | 75 20 22 4c 61 79 6f 75 |" of men|u "Layou|
|00004290| 74 22 20 74 6f 20 22 49 | 22 0d 73 65 74 20 63 6f |t" to "I|".set co|
|000042a0| 6d 6d 61 6e 64 43 68 61 | 72 20 6f 66 20 6d 65 6e |mmandCha|r of men|
|000042b0| 75 49 74 65 6d 20 22 44 | 65 6c 65 74 65 20 49 6e |uItem "D|elete In|
|000042c0| 64 65 6e 74 22 20 6f 66 | 20 6d 65 6e 75 20 22 4c |dent" of| menu "L|
|000042d0| 61 79 6f 75 74 22 20 74 | 6f 20 22 55 22 0d 73 65 |ayout" t|o "U".se|
|000042e0| 74 20 63 6f 6d 6d 61 6e | 64 43 68 61 72 20 6f 66 |t comman|dChar of|
|000042f0| 20 6d 65 6e 75 49 74 65 | 6d 20 22 49 6d 70 6f 72 | menuIte|m "Impor|
|00004300| 74 20 54 65 78 74 22 20 | 6f 66 20 6d 65 6e 75 20 |t Text" |of menu |
|00004310| 22 4c 61 79 6f 75 74 22 | 20 74 6f 20 22 54 22 0d |"Layout"| to "T".|
|00004320| 70 75 74 20 6d 61 67 50 | 69 63 74 75 72 65 49 74 |put magP|ictureIt|
|00004330| 65 6d 73 28 29 20 61 66 | 74 65 72 20 6d 65 6e 75 |ems() af|ter menu|
|00004340| 20 22 4c 61 79 6f 75 74 | 22 20 77 69 74 68 20 6d | "Layout|" with m|
|00004350| 65 6e 75 4d 73 67 20 6d | 61 67 50 69 63 74 75 72 |enuMsg m|agPictur|
|00004360| 65 4d 73 67 73 28 29 0d | 63 72 65 61 74 65 20 6d |eMsgs().|create m|
|00004370| 65 6e 75 20 22 4d 61 67 | 4d 61 6b 65 72 22 0d 70 |enu "Mag|Maker".p|
|00004380| 75 74 20 6d 61 67 4d 65 | 6e 75 73 49 74 65 6d 73 |ut magMe|nusItems|
|00004390| 28 29 20 69 6e 74 6f 20 | 6d 65 6e 75 20 22 4d 61 |() into |menu "Ma|
|000043a0| 67 4d 61 6b 65 72 22 20 | 77 69 74 68 20 6d 65 6e |gMaker" |with men|
|000043b0| 75 4d 73 67 20 6d 61 67 | 4d 65 6e 75 73 4d 73 67 |uMsg mag|MenusMsg|
|000043c0| 73 28 29 0d 73 65 74 20 | 63 6f 6d 6d 61 6e 64 43 |s().set |commandC|
|000043d0| 68 61 72 20 6f 66 20 6d | 65 6e 75 49 74 65 6d 20 |har of m|enuItem |
|000043e0| 22 4e 65 77 20 41 72 74 | 69 63 6c 65 22 20 6f 66 |"New Art|icle" of|
|000043f0| 20 6d 65 6e 75 20 22 4d | 61 67 4d 61 6b 65 72 22 | menu "M|agMaker"|
|00004400| 20 74 6f 20 22 4e 22 0d | 73 65 74 20 74 68 65 20 | to "N".|set the |
|00004410| 63 6f 6d 6d 61 6e 64 43 | 68 61 72 20 6f 66 20 6d |commandC|har of m|
|00004420| 65 6e 75 49 74 65 6d 20 | 22 4e 65 77 20 43 61 72 |enuItem |"New Car|
|00004430| 64 22 20 6f 66 20 6d 65 | 6e 75 20 22 45 64 69 74 |d" of me|nu "Edit|
|00004440| 22 20 74 6f 20 22 22 0d | 70 75 74 20 22 43 6c 6f |" to "".|put "Clo|
|00004450| 73 65 20 4d 61 67 4d 61 | 6b 65 72 22 20 61 66 74 |se MagMa|ker" aft|
|00004460| 65 72 20 6d 65 6e 75 20 | 22 4d 61 67 4d 61 6b 65 |er menu |"MagMake|
|00004470| 72 22 20 77 69 74 68 20 | 6d 65 6e 75 4d 73 67 20 |r" with |menuMsg |
|00004480| 22 63 6c 6f 73 65 4d 61 | 67 4d 61 6b 65 72 22 0d |"closeMa|gMaker".|
|00004490| 70 75 74 20 22 43 6f 70 | 79 20 41 72 74 69 63 6c |put "Cop|y Articl|
|000044a0| 65 22 20 26 20 72 65 74 | 75 72 6e 20 26 20 22 50 |e" & ret|urn & "P|
|000044b0| 61 73 74 65 20 41 72 74 | 69 63 6c 65 22 20 26 20 |aste Art|icle" & |
|000044c0| 72 65 74 75 72 6e 20 26 | 20 22 2d 22 20 61 66 74 |return &| "-" aft|
|000044d0| 65 72 20 6d 65 6e 75 49 | 74 65 6d 20 37 20 6f 66 |er menuI|tem 7 of|
|000044e0| 20 6d 65 6e 75 20 22 45 | 64 69 74 22 0d 73 65 74 | menu "E|dit".set|
|000044f0| 20 6d 65 6e 75 4d 73 67 | 20 6f 66 20 6d 65 6e 75 | menuMsg| of menu|
|00004500| 49 74 65 6d 20 22 43 6f | 70 79 20 41 72 74 69 63 |Item "Co|py Artic|
|00004510| 6c 65 22 20 6f 66 20 6d | 65 6e 75 20 22 45 64 69 |le" of m|enu "Edi|
|00004520| 74 22 20 74 6f 20 22 63 | 6f 70 79 41 72 74 69 63 |t" to "c|opyArtic|
|00004530| 6c 65 22 0d 73 65 74 20 | 6d 65 6e 75 4d 73 67 20 |le".set |menuMsg |
|00004540| 6f 66 20 6d 65 6e 75 49 | 74 65 6d 20 22 50 61 73 |of menuI|tem "Pas|
|00004550| 74 65 20 41 72 74 69 63 | 6c 65 22 20 6f 66 20 6d |te Artic|le" of m|
|00004560| 65 6e 75 20 22 45 64 69 | 74 22 20 74 6f 20 22 70 |enu "Edi|t" to "p|
|00004570| 61 73 74 65 41 72 74 69 | 63 6c 65 22 0d 69 66 20 |asteArti|cle".if |
|00004580| 74 68 65 20 6c 6f 63 6b | 54 65 78 74 20 6f 66 20 |the lock|Text of |
|00004590| 66 6c 64 20 22 42 6f 64 | 79 22 20 69 73 20 66 61 |fld "Bod|y" is fa|
|000045a0| 6c 73 65 20 74 68 65 6e | 0d 73 65 74 20 74 68 65 |lse then|.set the|
|000045b0| 20 63 68 65 63 6b 4d 61 | 72 6b 20 6f 66 20 6d 65 | checkMa|rk of me|
|000045c0| 6e 75 49 74 65 6d 20 31 | 20 6f 66 20 6d 65 6e 75 |nuItem 1| of menu|
|000045d0| 20 22 4c 61 79 6f 75 74 | 22 20 74 6f 20 74 72 75 | "Layout|" to tru|
|000045e0| 65 0d 65 6c 73 65 0d 73 | 65 74 20 74 68 65 20 63 |e.else.s|et the c|
|000045f0| 68 65 63 6b 4d 61 72 6b | 20 6f 66 20 6d 65 6e 75 |heckMark| of menu|
|00004600| 49 74 65 6d 20 31 20 6f | 66 20 6d 65 6e 75 20 22 |Item 1 o|f menu "|
|00004610| 4c 61 79 6f 75 74 22 20 | 74 6f 20 66 61 6c 73 65 |Layout" |to false|
|00004620| 0d 65 6e 64 20 69 66 0d | 75 6e 6c 6f 63 6b 20 73 |.end if.|unlock s|
|00004630| 63 72 65 65 6e 0d 65 6e | 64 20 6d 61 67 4d 61 6b |creen.en|d magMak|
|00004640| 65 72 4d 65 6e 75 73 0d | 0d 6f 6e 20 75 6e 4d 61 |erMenus.|.on unMa|
|00004650| 67 4d 65 6e 75 73 0d 69 | 66 20 74 68 65 72 65 20 |gMenus.i|f there |
|00004660| 69 73 20 6e 6f 74 20 61 | 20 6d 65 6e 75 20 22 4e |is not a| menu "N|
|00004670| 61 76 69 67 61 74 69 6f | 6e 22 20 74 68 65 6e 20 |avigatio|n" then |
|00004680| 65 78 69 74 20 75 6e 4d | 61 67 4d 65 6e 75 73 0d |exit unM|agMenus.|
|00004690| 65 6c 73 65 20 72 65 73 | 65 74 20 6d 65 6e 75 42 |else res|et menuB|
|000046a0| 61 72 0d 65 6e 64 20 75 | 6e 4d 61 67 4d 65 6e 75 |ar.end u|nMagMenu|
|000046b0| 73 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 6d 61 67 54 |s..funct|ion magT|
|000046c0| 65 78 74 49 74 65 6d 73 | 0d 72 65 74 75 72 6e 20 |extItems|.return |
|000046d0| 22 45 64 69 74 20 54 65 | 78 74 2c 52 65 66 6c 6f |"Edit Te|xt,Reflo|
|000046e0| 77 20 54 65 78 74 2c 54 | 79 70 65 73 65 74 20 54 |w Text,T|ypeset T|
|000046f0| 65 78 74 2c 2d 2c 49 6d | 70 6f 72 74 20 54 65 78 |ext,-,Im|port Tex|
|00004700| 74 2c 45 78 70 6f 72 74 | 20 54 65 78 74 2c 2d 2c |t,Export| Text,-,|
|00004710| 4d 61 6b 65 20 49 6e 64 | 65 6e 74 2c 44 65 6c 65 |Make Ind|ent,Dele|
|00004720| 74 65 20 49 6e 64 65 6e | 74 2c 2d 2c 22 0d 65 6e |te Inden|t,-,".en|
|00004730| 64 20 6d 61 67 54 65 78 | 74 49 74 65 6d 73 0d 0d |d magTex|tItems..|
|00004740| 66 75 6e 63 74 69 6f 6e | 20 6d 61 67 54 65 78 74 |function| magText|
|00004750| 4d 73 67 73 0d 72 65 74 | 75 72 6e 20 22 74 65 78 |Msgs.ret|urn "tex|
|00004760| 74 49 6e 73 65 72 74 2c | 72 65 46 6c 6f 77 57 69 |tInsert,|reFlowWi|
|00004770| 74 68 53 74 79 6c 65 2c | 74 79 70 65 73 65 74 54 |thStyle,|typesetT|
|00004780| 65 78 74 2c 2c 69 6d 70 | 6f 72 74 54 65 78 74 2c |ext,,imp|ortText,|
|00004790| 65 78 70 6f 72 74 54 65 | 78 74 2c 2c 6d 61 6b 65 |exportTe|xt,,make|
|000047a0| 49 6e 64 65 6e 74 2c 64 | 65 6c 65 74 65 49 6e 64 |Indent,d|eleteInd|
|000047b0| 65 6e 74 2c 2c 22 0d 65 | 6e 64 20 6d 61 67 54 65 |ent,,".e|nd magTe|
|000047c0| 78 74 4d 73 67 73 0d 0d | 0d 66 75 6e 63 74 69 6f |xtMsgs..|.functio|
|000047d0| 6e 20 6d 61 67 50 69 63 | 74 75 72 65 49 74 65 6d |n magPic|tureItem|
|000047e0| 73 0d 72 65 74 75 72 6e | 20 22 43 72 65 61 74 65 |s.return| "Create|
|000047f0| 20 52 75 6e 2d 41 72 6f | 75 6e 64 2c 43 6f 70 79 | Run-Aro|und,Copy|
|00004800| 20 52 75 6e 2d 41 72 6f | 75 6e 64 2c 50 61 73 74 | Run-Aro|und,Past|
|00004810| 65 20 52 75 6e 2d 41 72 | 6f 75 6e 64 2c 43 75 74 |e Run-Ar|ound,Cut|
|00004820| 20 52 75 6e 2d 41 72 6f | 75 6e 64 2c 2d 2c 50 6c | Run-Aro|und,-,Pl|
|00004830| 61 63 65 20 50 69 63 74 | 2c 43 6f 70 79 20 50 69 |ace Pict|,Copy Pi|
|00004840| 63 74 2c 50 61 73 74 65 | 20 50 69 63 74 2c 43 75 |ct,Paste| Pict,Cu|
|00004850| 74 20 50 69 63 74 2c 2d | 2c 49 6d 70 6f 72 74 20 |t Pict,-|,Import |
|00004860| 50 69 63 74 2c 45 64 69 | 74 20 50 69 63 74 20 4c |Pict,Edi|t Pict L|
|00004870| 69 73 74 22 0d 65 6e 64 | 20 6d 61 67 50 69 63 74 |ist".end| magPict|
|00004880| 75 72 65 49 74 65 6d 73 | 0d 0d 66 75 6e 63 74 69 |ureItems|..functi|
|00004890| 6f 6e 20 6d 61 67 50 69 | 63 74 75 72 65 4d 73 67 |on magPi|ctureMsg|
|000048a0| 73 0d 72 65 74 75 72 6e | 20 22 70 69 63 74 75 72 |s.return| "pictur|
|000048b0| 65 50 6c 61 63 65 2c 63 | 6f 70 79 50 69 63 74 75 |ePlace,c|opyPictu|
|000048c0| 72 65 2c 70 61 73 74 65 | 50 69 63 74 75 72 65 2c |re,paste|Picture,|
|000048d0| 64 65 6c 65 74 65 50 69 | 63 74 75 72 65 2c 2c 70 |deletePi|cture,,p|
|000048e0| 6c 61 63 65 50 69 63 74 | 2c 63 6f 70 79 50 69 63 |lacePict|,copyPic|
|000048f0| 74 2c 70 61 73 74 65 50 | 69 63 74 2c 63 75 74 50 |t,pasteP|ict,cutP|
|00004900| 69 63 74 2c 2c 69 6d 70 | 6f 72 74 50 69 63 74 2c |ict,,imp|ortPict,|
|00004910| 65 64 69 74 50 69 63 74 | 22 0d 65 6e 64 20 6d 61 |editPict|".end ma|
|00004920| 67 50 69 63 74 75 72 65 | 4d 73 67 73 0d 0d 66 75 |gPicture|Msgs..fu|
|00004930| 6e 63 74 69 6f 6e 20 6d | 61 67 4d 65 6e 75 73 49 |nction m|agMenusI|
|00004940| 74 65 6d 73 0d 72 65 74 | 75 72 6e 20 22 48 69 64 |tems.ret|urn "Hid|
|00004950| 65 20 54 6f 6f 6c 73 2c | 53 68 6f 77 20 50 69 63 |e Tools,|Show Pic|
|00004960| 74 20 4c 69 73 74 2c 2d | 2c 4e 65 77 20 50 61 67 |t List,-|,New Pag|
|00004970| 65 2c 4e 65 77 20 41 72 | 74 69 63 6c 65 2c 43 68 |e,New Ar|ticle,Ch|
|00004980| 61 6e 67 65 20 41 72 74 | 69 63 6c 65 20 4e 61 6d |ange Art|icle Nam|
|00004990| 65 2c 44 65 6c 65 74 65 | 20 41 72 74 69 63 6c 65 |e,Delete| Article|
|000049a0| 2c 2d 2c 48 69 64 65 20 | 41 72 74 69 63 6c 65 20 |,-,Hide |Article |
|000049b0| 4e 61 6d 65 73 2c 2d 2c | 4c 6f 63 6b 20 50 61 67 |Names,-,|Lock Pag|
|000049c0| 65 2c 2d 2c 43 72 65 61 | 74 65 20 54 61 62 6c 65 |e,-,Crea|te Table|
|000049d0| 20 6f 66 20 43 6f 6e 74 | 65 6e 74 73 2c 2d 2c 22 | of Cont|ents,-,"|
|000049e0| 20 26 20 c2 0d 22 53 65 | 74 20 4d 61 67 61 7a 69 | & .."Se|t Magazi|
|000049f0| 6e 65 20 54 65 78 74 20 | 46 6f 6e 74 2c 53 65 74 |ne Text |Font,Set|
|00004a00| 20 4d 61 67 61 7a 69 6e | 65 20 54 65 78 74 20 53 | Magazin|e Text S|
|00004a10| 69 7a 65 2c 53 65 74 20 | 4d 61 67 61 7a 69 6e 65 |ize,Set |Magazine|
|00004a20| 20 54 65 78 74 20 4c 65 | 61 64 69 6e 67 2c 2d 2c | Text Le|ading,-,|
|00004a30| 4e 65 77 20 4d 61 67 61 | 7a 69 6e 65 2c 2d 2c 4d |New Maga|zine,-,M|
|00004a40| 61 67 4d 61 6b 65 72 20 | 48 65 6c 70 22 0d 65 6e |agMaker |Help".en|
|00004a50| 64 20 6d 61 67 4d 65 6e | 75 73 49 74 65 6d 73 0d |d magMen|usItems.|
|00004a60| 0d 66 75 6e 63 74 69 6f | 6e 20 6d 61 67 4d 65 6e |.functio|n magMen|
|00004a70| 75 73 4d 73 67 73 0d 72 | 65 74 75 72 6e 20 22 73 |usMsgs.r|eturn "s|
|00004a80| 68 6f 77 54 6f 6f 6c 73 | 2c 73 68 6f 77 50 69 63 |howTools|,showPic|
|00004a90| 74 4c 69 73 74 2c 2c 6e | 65 77 50 61 67 65 2c 63 |tList,,n|ewPage,c|
|00004aa0| 72 65 61 74 65 43 68 61 | 70 74 65 72 2c 6e 65 77 |reateCha|pter,new|
|00004ab0| 43 68 61 70 4e 61 6d 65 | 2c 64 65 6c 65 74 65 43 |ChapName|,deleteC|
|00004ac0| 68 61 70 74 65 72 2c 2c | 68 69 64 65 43 68 61 70 |hapter,,|hideChap|
|00004ad0| 4e 61 6d 65 2c 2c 6c 6f | 63 6b 50 61 67 65 2c 2c |Name,,lo|ckPage,,|
|00004ae0| 63 72 65 61 74 65 43 6f | 6e 74 65 6e 74 73 2c 2c |createCo|ntents,,|
|00004af0| 73 65 74 46 6f 6e 74 2c | 73 65 74 53 69 7a 65 2c |setFont,|setSize,|
|00004b00| 73 65 74 4c 65 61 64 2c | 2c 63 72 65 61 74 65 42 |setLead,|,createB|
|00004b10| 6f 6f 6b 2c 2c 62 6f 6f | 6b 48 65 6c 70 22 0d 65 |ook,,boo|kHelp".e|
|00004b20| 6e 64 20 6d 61 67 4d 65 | 6e 75 73 4d 73 67 73 0d |nd magMe|nusMsgs.|
|00004b30| 0d 6f 6e 20 74 65 78 74 | 49 6e 73 65 72 74 0d 69 |.on text|Insert.i|
|00004b40| 66 20 74 6f 6f 6c 73 53 | 74 61 63 6b 28 29 20 74 |f toolsS|tack() t|
|00004b50| 68 65 6e 20 65 78 69 74 | 20 74 65 78 74 49 6e 73 |hen exit| textIns|
|00004b60| 65 72 74 0d 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d |ert.lock| screen.|
|00004b70| 6c 6f 63 6b 20 6d 65 73 | 73 61 67 65 73 0d 69 66 |lock mes|sages.if|
|00004b80| 20 74 68 65 20 6c 6f 63 | 6b 54 65 78 74 20 6f 66 | the loc|kText of|
|00004b90| 20 66 6c 64 20 22 42 6f | 64 79 22 20 74 68 65 6e | fld "Bo|dy" then|
|00004ba0| 0d 70 75 74 20 74 68 65 | 20 73 68 6f 72 74 20 69 |.put the| short i|
|00004bb0| 64 20 6f 66 20 74 68 69 | 73 20 62 67 20 69 6e 74 |d of thi|s bg int|
|00004bc0| 6f 20 73 74 6f 70 43 64 | 0d 70 75 73 68 20 63 64 |o stopCd|.push cd|
|00004bd0| 0d 72 65 70 65 61 74 20 | 75 6e 74 69 6c 20 74 68 |.repeat |until th|
|00004be0| 65 20 6d 6f 75 73 65 20 | 69 73 20 64 6f 77 6e 0d |e mouse |is down.|
|00004bf0| 73 65 74 20 74 68 65 20 | 6c 6f 63 6b 54 65 78 74 |set the |lockText|
|00004c00| 20 6f 66 20 66 6c 64 20 | 22 42 6f 64 79 22 20 74 | of fld |"Body" t|
|00004c10| 6f 20 66 61 6c 73 65 0d | 73 65 74 20 74 68 65 20 |o false.|set the |
|00004c20| 69 63 6f 6e 20 6f 66 20 | 62 67 20 62 74 6e 20 22 |icon of |bg btn "|
|00004c30| 54 68 65 54 6f 6f 6c 42 | 74 6e 22 20 74 6f 20 54 |TheToolB|tn" to T|
|00004c40| 65 78 74 0d 67 6f 20 6e | 65 78 74 20 62 67 0d 69 |ext.go n|ext bg.i|
|00004c50| 66 20 74 68 65 20 73 68 | 6f 72 74 20 69 64 20 6f |f the sh|ort id o|
|00004c60| 66 20 74 68 69 73 20 62 | 67 20 69 73 20 73 74 6f |f this b|g is sto|
|00004c70| 70 43 64 20 74 68 65 6e | 20 65 78 69 74 20 72 65 |pCd then| exit re|
|00004c80| 70 65 61 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |peat.end| repeat.|
|00004c90| 70 6f 70 20 63 64 0d 73 | 65 74 20 74 68 65 20 63 |pop cd.s|et the c|
|00004ca0| 68 65 63 6b 4d 61 72 6b | 20 6f 66 20 6d 65 6e 75 |heckMark| of menu|
|00004cb0| 49 74 65 6d 20 22 45 64 | 69 74 20 54 65 78 74 22 |Item "Ed|it Text"|
|00004cc0| 20 6f 66 20 6d 65 6e 75 | 20 22 4c 61 79 6f 75 74 | of menu| "Layout|
|00004cd0| 22 20 74 6f 20 74 72 75 | 65 0d 65 6c 73 65 0d 70 |" to tru|e.else.p|
|00004ce0| 75 74 20 74 68 65 20 73 | 68 6f 72 74 20 69 64 20 |ut the s|hort id |
|00004cf0| 6f 66 20 74 68 69 73 20 | 62 67 20 69 6e 74 6f 20 |of this |bg into |
|00004d00| 73 74 6f 70 43 64 0d 70 | 75 73 68 20 63 64 0d 72 |stopCd.p|ush cd.r|
|00004d10| 65 70 65 61 74 20 75 6e | 74 69 6c 20 74 68 65 20 |epeat un|til the |
|00004d20| 6d 6f 75 73 65 20 69 73 | 20 64 6f 77 6e 0d 73 65 |mouse is| down.se|
|00004d30| 74 20 74 68 65 20 6c 6f | 63 6b 54 65 78 74 20 6f |t the lo|ckText o|
|00004d40| 66 20 66 6c 64 20 22 42 | 6f 64 79 22 20 74 6f 20 |f fld "B|ody" to |
|00004d50| 74 72 75 65 0d 73 65 74 | 20 74 68 65 20 69 63 6f |true.set| the ico|
|00004d60| 6e 20 6f 66 20 62 67 20 | 62 74 6e 20 22 54 68 65 |n of bg |btn "The|
|00004d70| 54 6f 6f 6c 42 74 6e 22 | 20 74 6f 20 48 61 6e 64 |ToolBtn"| to Hand|
|00004d80| 0d 67 6f 20 6e 65 78 74 | 20 62 67 0d 69 66 20 74 |.go next| bg.if t|
|00004d90| 68 65 20 73 68 6f 72 74 | 20 69 64 20 6f 66 20 74 |he short| id of t|
|00004da0| 68 69 73 20 62 67 20 69 | 73 20 73 74 6f 70 43 64 |his bg i|s stopCd|
|00004db0| 20 74 68 65 6e 20 65 78 | 69 74 20 72 65 70 65 61 | then ex|it repea|
|00004dc0| 74 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 70 6f 70 |t.end re|peat.pop|
|00004dd0| 20 63 64 0d 73 65 74 20 | 74 68 65 20 63 68 65 63 | cd.set |the chec|
|00004de0| 6b 4d 61 72 6b 20 6f 66 | 20 6d 65 6e 75 49 74 65 |kMark of| menuIte|
|00004df0| 6d 20 22 45 64 69 74 20 | 54 65 78 74 22 20 6f 66 |m "Edit |Text" of|
|00004e00| 20 6d 65 6e 75 20 22 4c | 61 79 6f 75 74 22 20 74 | menu "L|ayout" t|
|00004e10| 6f 20 66 61 6c 73 65 0d | 65 6e 64 20 69 66 0d 75 |o false.|end if.u|
|00004e20| 6e 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 65 6e 64 |nlock sc|reen.end|
|00004e30| 20 74 65 78 74 49 6e 73 | 65 72 74 0d 0d 0d 6f 6e | textIns|ert...on|
|00004e40| 20 64 65 6c 65 74 65 43 | 68 61 70 74 65 72 0d 69 | deleteC|hapter.i|
|00004e50| 66 20 74 6f 6f 6c 73 53 | 74 61 63 6b 28 29 20 74 |f toolsS|tack() t|
|00004e60| 68 65 6e 20 65 78 69 74 | 20 64 65 6c 65 74 65 43 |hen exit| deleteC|
|00004e70| 68 61 70 74 65 72 0d 61 | 6e 73 77 65 72 20 22 41 |hapter.a|nswer "A|
|00004e80| 72 65 20 79 6f 75 20 73 | 75 72 65 20 79 6f 75 20 |re you s|ure you |
|00004e90| 77 61 6e 74 20 74 6f 20 | 64 65 6c 65 74 65 20 74 |want to |delete t|
|00004ea0| 68 69 73 20 61 72 74 69 | 63 6c 65 3f 22 20 77 69 |his arti|cle?" wi|
|00004eb0| 74 68 20 22 43 61 6e 63 | 65 6c 22 20 6f 72 20 22 |th "Canc|el" or "|
|00004ec0| 4f 4b 22 0d 69 66 20 69 | 74 20 69 73 20 6e 6f 74 |OK".if i|t is not|
|00004ed0| 20 22 4f 4b 22 20 74 68 | 65 6e 20 65 78 69 74 20 | "OK" th|en exit |
|00004ee0| 64 65 6c 65 74 65 43 68 | 61 70 74 65 72 0d 6c 6f |deleteCh|apter.lo|
|00004ef0| 63 6b 20 73 63 72 65 65 | 6e 0d 6c 6f 63 6b 20 6d |ck scree|n.lock m|
|00004f00| 65 73 73 61 67 65 73 0d | 75 6e 6d 61 72 6b 20 61 |essages.|unmark a|
|00004f10| 6c 6c 20 63 64 73 0d 70 | 75 74 20 66 6c 64 20 22 |ll cds.p|ut fld "|
|00004f20| 41 72 74 69 63 6c 65 4e | 61 6d 65 22 20 69 6e 74 |ArticleN|ame" int|
|00004f30| 6f 20 74 68 69 73 43 68 | 61 70 0d 6d 61 72 6b 20 |o thisCh|ap.mark |
|00004f40| 63 61 72 64 73 20 77 68 | 65 72 65 20 66 6c 64 20 |cards wh|ere fld |
|00004f50| 22 41 72 74 69 63 6c 65 | 4e 61 6d 65 22 20 69 73 |"Article|Name" is|
|00004f60| 20 74 68 69 73 43 68 61 | 70 0d 69 66 20 74 68 65 | thisCha|p.if the|
|00004f70| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6d 61 72 6b 65 | number |of marke|
|00004f80| 64 20 63 64 73 20 3d 20 | 74 68 65 20 6e 75 6d 62 |d cds = |the numb|
|00004f90| 65 72 20 6f 66 20 63 64 | 73 20 6f 66 20 74 68 69 |er of cd|s of thi|
|00004fa0| 73 20 73 74 61 63 6b 20 | 74 68 65 6e 0d 70 75 74 |s stack |then.put|
|00004fb0| 20 28 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | (the nu|mber of |
|00004fc0| 63 64 73 20 6f 66 20 74 | 68 69 73 20 73 74 61 63 |cds of t|his stac|
|00004fd0| 6b 20 2d 20 31 29 20 69 | 6e 74 6f 20 74 6f 74 61 |k - 1) i|nto tota|
|00004fe0| 6c 44 65 6c 0d 65 6c 73 | 65 0d 70 75 74 20 74 68 |lDel.els|e.put th|
|00004ff0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 6d 61 72 6b |e number| of mark|
|00005000| 65 64 20 63 64 73 20 69 | 6e 74 6f 20 74 6f 74 61 |ed cds i|nto tota|
|00005010| 6c 44 65 6c 0d 65 6e 64 | 20 69 66 0d 72 65 70 65 |lDel.end| if.repe|
|00005020| 61 74 20 77 69 74 68 20 | 78 20 3d 20 31 20 74 6f |at with |x = 1 to|
|00005030| 20 74 6f 74 61 6c 44 65 | 6c 0d 67 6f 20 66 69 72 | totalDe|l.go fir|
|00005040| 73 74 20 6d 61 72 6b 65 | 64 20 63 64 0d 64 6f 4d |st marke|d cd.doM|
|00005050| 65 6e 75 20 22 44 65 6c | 65 74 65 20 43 61 72 64 |enu "Del|ete Card|
|00005060| 22 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 63 72 65 |".end re|peat.cre|
|00005070| 61 74 65 43 6f 6e 74 65 | 6e 74 73 0d 65 6e 64 20 |ateConte|nts.end |
|00005080| 64 65 6c 65 74 65 43 68 | 61 70 74 65 72 0d 0d 6f |deleteCh|apter..o|
|00005090| 6e 20 6e 65 77 43 68 61 | 70 4e 61 6d 65 0d 69 66 |n newCha|pName.if|
|000050a0| 20 74 6f 6f 6c 73 53 74 | 61 63 6b 28 29 20 74 68 | toolsSt|ack() th|
|000050b0| 65 6e 20 65 78 69 74 20 | 6e 65 77 43 68 61 70 4e |en exit |newChapN|
|000050c0| 61 6d 65 0d 75 6e 6d 61 | 72 6b 20 61 6c 6c 20 63 |ame.unma|rk all c|
|000050d0| 64 73 0d 70 75 74 20 66 | 6c 64 20 22 41 72 74 69 |ds.put f|ld "Arti|
|000050e0| 63 6c 65 4e 61 6d 65 22 | 20 69 6e 74 6f 20 6f 6c |cleName"| into ol|
|000050f0| 64 43 68 61 70 4e 61 6d | 65 0d 61 73 6b 20 22 43 |dChapNam|e.ask "C|
|00005100| 68 61 6e 67 65 20 63 68 | 61 70 74 65 72 20 6e 61 |hange ch|apter na|
|00005110| 6d 65 20 74 6f c9 22 20 | 77 69 74 68 20 6f 6c 64 |me to." |with old|
|00005120| 43 68 61 70 4e 61 6d 65 | 0d 69 66 20 74 68 65 20 |ChapName|.if the |
|00005130| 72 65 73 75 6c 74 20 69 | 73 20 22 43 61 6e 63 65 |result i|s "Cance|
|00005140| 6c 22 20 74 68 65 6e 20 | 65 78 69 74 20 6e 65 77 |l" then |exit new|
|00005150| 43 68 61 70 4e 61 6d 65 | 0d 70 75 74 20 69 74 20 |ChapName|.put it |
|00005160| 69 6e 74 6f 20 6e 65 77 | 4e 61 6d 65 0d 6c 6f 63 |into new|Name.loc|
|00005170| 6b 20 73 63 72 65 65 6e | 0d 6c 6f 63 6b 20 6d 65 |k screen|.lock me|
|00005180| 73 73 61 67 65 73 0d 6d | 61 72 6b 20 63 64 73 20 |ssages.m|ark cds |
|00005190| 77 68 65 72 65 20 66 6c | 64 20 22 41 72 74 69 63 |where fl|d "Artic|
|000051a0| 6c 65 4e 61 6d 65 22 20 | 69 73 20 6f 6c 64 43 68 |leName" |is oldCh|
|000051b0| 61 70 4e 61 6d 65 0d 67 | 6f 20 66 69 72 73 74 20 |apName.g|o first |
|000051c0| 6d 61 72 6b 65 64 20 63 | 64 0d 72 65 70 65 61 74 |marked c|d.repeat|
|000051d0| 20 77 69 74 68 20 78 20 | 3d 20 31 20 74 6f 20 74 | with x |= 1 to t|
|000051e0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6d 61 72 |he numbe|r of mar|
|000051f0| 6b 65 64 20 63 64 73 0d | 73 65 74 20 63 75 72 73 |ked cds.|set curs|
|00005200| 6f 72 20 74 6f 20 62 75 | 73 79 0d 70 75 74 20 6e |or to bu|sy.put n|
|00005210| 65 77 4e 61 6d 65 20 69 | 6e 74 6f 20 66 6c 64 20 |ewName i|nto fld |
|00005220| 22 41 72 74 69 63 6c 65 | 4e 61 6d 65 22 0d 67 6f |"Article|Name".go|
|00005230| 20 6e 65 78 74 20 6d 61 | 72 6b 65 64 20 63 64 0d | next ma|rked cd.|
|00005240| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 6e |end repe|at.end n|
|00005250| 65 77 43 68 61 70 4e 61 | 6d 65 0d 0d 6f 6e 20 63 |ewChapNa|me..on c|
|00005260| 72 65 61 74 65 43 68 61 | 70 74 65 72 0d 69 66 20 |reateCha|pter.if |
|00005270| 74 6f 6f 6c 73 53 74 61 | 63 6b 28 29 20 74 68 65 |toolsSta|ck() the|
|00005280| 6e 20 65 78 69 74 20 63 | 72 65 61 74 65 43 68 61 |n exit c|reateCha|
|00005290| 70 74 65 72 0d 70 75 74 | 20 66 6c 64 20 22 41 72 |pter.put| fld "Ar|
|000052a0| 74 69 63 6c 65 4e 61 6d | 65 22 20 69 6e 74 6f 20 |ticleNam|e" into |
|000052b0| 70 72 65 76 43 68 61 70 | 4e 61 6d 65 0d 61 73 6b |prevChap|Name.ask|
|000052c0| 20 22 4e 61 6d 65 20 6f | 66 20 6e 65 77 20 61 72 | "Name o|f new ar|
|000052d0| 74 69 63 6c 65 3f 22 0d | 69 66 20 69 74 20 69 73 |ticle?".|if it is|
|000052e0| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 61 6e 73 77 | empty t|hen.answ|
|000052f0| 65 72 20 22 41 72 74 69 | 63 6c 65 73 20 6d 75 73 |er "Arti|cles mus|
|00005300| 74 20 62 65 20 6e 61 6d | 65 64 2e 22 0d 65 78 69 |t be nam|ed.".exi|
|00005310| 74 20 63 72 65 61 74 65 | 43 68 61 70 74 65 72 0d |t create|Chapter.|
|00005320| 65 6e 64 20 69 66 0d 70 | 75 74 20 69 74 20 69 6e |end if.p|ut it in|
|00005330| 74 6f 20 6e 65 77 43 68 | 61 70 4e 61 6d 65 0d 75 |to newCh|apName.u|
|00005340| 6e 6d 61 72 6b 20 61 6c | 6c 20 63 64 73 0d 69 66 |nmark al|l cds.if|
|00005350| 20 6e 65 77 43 68 61 70 | 4e 61 6d 65 20 69 73 20 | newChap|Name is |
|00005360| 22 48 65 6c 70 22 20 6f | 72 20 6e 65 77 43 68 61 |"Help" o|r newCha|
|00005370| 70 4e 61 6d 65 20 69 73 | 20 22 54 61 62 6c 65 20 |pName is| "Table |
|00005380| 6f 66 20 43 6f 6e 74 65 | 6e 74 73 22 20 6f 72 20 |of Conte|nts" or |
|00005390| 6e 65 77 43 68 61 70 4e | 61 6d 65 20 69 73 20 22 |newChapN|ame is "|
|000053a0| 43 6f 76 65 72 22 20 74 | 68 65 6e 0d 61 6e 73 77 |Cover" t|hen.answ|
|000053b0| 65 72 20 22 53 6f 72 72 | 79 2c 20 63 61 6e d5 74 |er "Sorr|y, can.t|
|000053c0| 20 75 73 65 20 22 20 26 | 20 6e 65 77 43 68 61 70 | use " &| newChap|
|000053d0| 4e 61 6d 65 20 26 20 22 | 20 61 73 20 61 6e 20 61 |Name & "| as an a|
|000053e0| 72 74 69 63 6c 65 20 6e | 61 6d 65 2e 22 0d 65 78 |rticle n|ame.".ex|
|000053f0| 69 74 20 63 72 65 61 74 | 65 43 68 61 70 74 65 72 |it creat|eChapter|
|00005400| 0d 65 6e 64 20 69 66 0d | 6d 61 72 6b 20 63 64 73 |.end if.|mark cds|
|00005410| 20 77 68 65 72 65 20 6e | 65 77 43 68 61 70 4e 61 | where n|ewChapNa|
|00005420| 6d 65 20 69 73 20 69 6e | 20 66 6c 64 20 22 41 72 |me is in| fld "Ar|
|00005430| 74 69 63 6c 65 4e 61 6d | 65 22 0d 69 66 20 74 68 |ticleNam|e".if th|
|00005440| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 6d 61 72 6b |e number| of mark|
|00005450| 65 64 20 63 64 73 20 3e | 20 30 20 74 68 65 6e 0d |ed cds >| 0 then.|
|00005460| 61 6e 73 77 65 72 20 22 | 41 6e 20 61 72 74 69 63 |answer "|An artic|
|00005470| 6c 65 20 77 69 74 68 20 | 74 68 69 73 20 6e 61 6d |le with |this nam|
|00005480| 65 20 61 6c 72 65 61 64 | 79 20 65 78 69 73 74 73 |e alread|y exists|
|00005490| 2e 22 0d 65 78 69 74 20 | 63 72 65 61 74 65 43 68 |.".exit |createCh|
|000054a0| 61 70 74 65 72 0d 65 6e | 64 20 69 66 0d 75 6e 6d |apter.en|d if.unm|
|000054b0| 61 72 6b 20 61 6c 6c 20 | 63 64 73 0d 6d 61 72 6b |ark all |cds.mark|
|000054c0| 20 63 64 73 20 77 68 65 | 72 65 20 66 6c 64 20 22 | cds whe|re fld "|
|000054d0| 41 72 74 69 63 6c 65 4e | 61 6d 65 22 20 69 73 20 |ArticleN|ame" is |
|000054e0| 70 72 65 76 43 68 61 70 | 4e 61 6d 65 0d 67 6f 20 |prevChap|Name.go |
|000054f0| 6c 61 73 74 20 6d 61 72 | 6b 65 64 20 63 64 0d 69 |last mar|ked cd.i|
|00005500| 66 20 74 68 65 20 73 68 | 6f 72 74 20 6e 61 6d 65 |f the sh|ort name|
|00005510| 20 6f 66 20 74 68 69 73 | 20 63 64 20 69 73 20 22 | of this| cd is "|
|00005520| 43 6f 76 65 72 22 20 6f | 72 20 74 68 65 20 73 68 |Cover" o|r the sh|
|00005530| 6f 72 74 20 6e 61 6d 65 | 20 6f 66 20 74 68 69 73 |ort name| of this|
|00005540| 20 63 64 20 69 73 20 22 | 48 65 6c 70 22 20 74 68 | cd is "|Help" th|
|00005550| 65 6e 0d 67 6f 20 63 64 | 20 22 54 61 62 6c 65 20 |en.go cd| "Table |
|00005560| 6f 66 20 43 6f 6e 74 65 | 6e 74 73 22 0d 65 6e 64 |of Conte|nts".end|
|00005570| 20 69 66 0d 64 6f 4d 65 | 6e 75 20 22 4e 65 77 20 | if.doMe|nu "New |
|00005580| 43 61 72 64 22 0d 70 75 | 74 20 69 74 20 69 6e 74 |Card".pu|t it int|
|00005590| 6f 20 66 6c 64 20 22 41 | 72 74 69 63 6c 65 4e 61 |o fld "A|rticleNa|
|000055a0| 6d 65 22 0d 69 66 20 6e | 6f 74 20 74 68 65 20 63 |me".if n|ot the c|
|000055b0| 68 65 63 6b 4d 61 72 6b | 20 6f 66 20 6d 65 6e 75 |heckMark| of menu|
|000055c0| 49 74 65 6d 20 22 45 64 | 69 74 20 54 65 78 74 22 |Item "Ed|it Text"|
|000055d0| 20 6f 66 20 6d 65 6e 75 | 20 22 4c 61 79 6f 75 74 | of menu| "Layout|
|000055e0| 22 20 74 68 65 6e 0d 74 | 65 78 74 49 6e 73 65 72 |" then.t|extInser|
|000055f0| 74 0d 65 6e 64 20 69 66 | 0d 73 65 6c 65 63 74 20 |t.end if|.select |
|00005600| 62 65 66 6f 72 65 20 74 | 65 78 74 20 6f 66 20 66 |before t|ext of f|
|00005610| 6c 64 20 22 42 6f 64 79 | 22 0d 65 6e 64 20 63 72 |ld "Body|".end cr|
|00005620| 65 61 74 65 43 68 61 70 | 74 65 72 0d 0d 6f 6e 20 |eateChap|ter..on |
|00005630| 68 69 64 65 43 68 61 70 | 4e 61 6d 65 0d 69 66 20 |hideChap|Name.if |
|00005640| 6e 6f 74 20 74 68 65 20 | 76 69 73 69 62 6c 65 20 |not the |visible |
|00005650| 6f 66 20 66 6c 64 20 22 | 41 72 74 69 63 6c 65 4e |of fld "|ArticleN|
|00005660| 61 6d 65 22 20 74 68 65 | 6e 0d 73 65 74 20 74 68 |ame" the|n.set th|
|00005670| 65 20 6e 61 6d 65 20 6f | 66 20 6d 65 6e 75 49 74 |e name o|f menuIt|
|00005680| 65 6d 20 39 20 6f 66 20 | 6d 65 6e 75 20 22 4d 61 |em 9 of |menu "Ma|
|00005690| 67 4d 61 6b 65 72 22 20 | 74 6f 20 22 48 69 64 65 |gMaker" |to "Hide|
|000056a0| 20 41 72 74 69 63 6c 65 | 20 4e 61 6d 65 73 22 0d | Article| Names".|
|000056b0| 73 65 74 20 74 68 65 20 | 76 69 73 69 62 6c 65 20 |set the |visible |
|000056c0| 6f 66 20 66 6c 64 20 22 | 41 72 74 69 63 6c 65 4e |of fld "|ArticleN|
|000056d0| 61 6d 65 22 20 74 6f 20 | 74 72 75 65 0d 65 6c 73 |ame" to |true.els|
|000056e0| 65 0d 73 65 74 20 74 68 | 65 20 6e 61 6d 65 20 6f |e.set th|e name o|
|000056f0| 66 20 6d 65 6e 75 49 74 | 65 6d 20 39 20 6f 66 20 |f menuIt|em 9 of |
|00005700| 6d 65 6e 75 20 22 4d 61 | 67 4d 61 6b 65 72 22 20 |menu "Ma|gMaker" |
|00005710| 74 6f 20 22 53 68 6f 77 | 20 41 72 74 69 63 6c 65 |to "Show| Article|
|00005720| 20 4e 61 6d 65 73 22 0d | 73 65 74 20 74 68 65 20 | Names".|set the |
|00005730| 76 69 73 69 62 6c 65 20 | 6f 66 20 66 6c 64 20 22 |visible |of fld "|
|00005740| 41 72 74 69 63 6c 65 4e | 61 6d 65 22 20 74 6f 20 |ArticleN|ame" to |
|00005750| 66 61 6c 73 65 0d 65 6e | 64 20 69 66 0d 65 6e 64 |false.en|d if.end|
|00005760| 20 68 69 64 65 43 68 61 | 70 4e 61 6d 65 0d 0d 0d | hideCha|pName...|
|00005770| 6f 6e 20 63 72 65 61 74 | 65 42 6f 6f 6b 0d 69 66 |on creat|eBook.if|
|00005780| 20 74 6f 6f 6c 73 53 74 | 61 63 6b 28 29 20 74 68 | toolsSt|ack() th|
|00005790| 65 6e 20 65 78 69 74 20 | 63 72 65 61 74 65 42 6f |en exit |createBo|
|000057a0| 6f 6b 0d 67 6c 6f 62 61 | 6c 20 66 69 6c 65 4e 61 |ok.globa|l fileNa|
|000057b0| 6d 65 0d 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 |me.put e|mpty int|
|000057c0| 6f 20 70 69 63 74 4c 69 | 73 74 0d 6c 6f 63 6b 20 |o pictLi|st.lock |
|000057d0| 73 63 72 65 65 6e 0d 6c | 6f 63 6b 20 6d 65 73 73 |screen.l|ock mess|
|000057e0| 61 67 65 73 0d 70 75 73 | 68 20 63 64 0d 67 6f 20 |ages.pus|h cd.go |
|000057f0| 73 74 61 63 6b 20 22 4d | 61 67 4d 61 6b 65 72 20 |stack "M|agMaker |
|00005800| 54 6f 6f 6c 73 20 41 22 | 0d 70 75 74 20 66 6c 64 |Tools A"|.put fld|
|00005810| 20 22 56 65 72 73 69 6f | 6e 22 20 69 6e 74 6f 20 | "Versio|n" into |
|00005820| 63 75 72 56 65 72 73 69 | 6f 6e 0d 70 6f 70 20 63 |curVersi|on.pop c|
|00005830| 64 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |d.if the|re is a |
|00005840| 66 6c 64 20 22 50 69 63 | 74 54 68 69 73 50 61 67 |fld "Pic|tThisPag|
|00005850| 65 22 20 74 68 65 6e 0d | 69 66 20 74 68 65 72 65 |e" then.|if there|
|00005860| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 28 69 74 | is a wi|ndow (it|
|00005870| 65 6d 20 31 20 6f 66 20 | 66 6c 64 20 22 50 69 63 |em 1 of |fld "Pic|
|00005880| 74 54 68 69 73 50 61 67 | 65 22 29 20 74 68 65 6e |tThisPag|e") then|
|00005890| 20 63 6c 6f 73 65 20 77 | 69 6e 64 6f 77 20 28 69 | close w|indow (i|
|000058a0| 74 65 6d 20 31 20 6f 66 | 20 66 6c 64 20 22 50 69 |tem 1 of| fld "Pi|
|000058b0| 63 74 54 68 69 73 50 61 | 67 65 22 29 0d 65 6e 64 |ctThisPa|ge").end|
|000058c0| 20 69 66 0d 70 75 74 20 | 74 68 65 20 6c 6f 6e 67 | if.put |the long|
|000058d0| 20 6e 61 6d 65 20 6f 66 | 20 74 68 69 73 20 73 74 | name of| this st|
|000058e0| 61 63 6b 20 69 6e 74 6f | 20 6d 61 73 74 65 72 42 |ack into| masterB|
|000058f0| 6f 6f 6b 0d 61 73 6b 20 | 66 69 6c 65 20 22 43 72 |ook.ask |file "Cr|
|00005900| 65 61 74 65 20 61 20 6e | 65 77 20 6d 61 67 61 7a |eate a n|ew magaz|
|00005910| 69 6e 65 20 6e 61 6d 65 | 64 c9 22 0d 69 66 20 69 |ine name|d.".if i|
|00005920| 74 20 69 73 20 6e 6f 74 | 20 22 43 61 6e 63 65 6c |t is not| "Cancel|
|00005930| 22 20 61 6e 64 20 74 68 | 65 20 72 65 73 75 6c 74 |" and th|e result|
|00005940| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 63 | is empt|y then.c|
|00005950| 72 65 61 74 65 20 73 74 | 61 63 6b 20 69 74 20 77 |reate st|ack it w|
|00005960| 69 74 68 20 74 68 69 73 | 20 62 67 0d 65 6c 73 65 |ith this| bg.else|
|00005970| 0d 65 78 69 74 20 63 72 | 65 61 74 65 42 6f 6f 6b |.exit cr|eateBook|
|00005980| 0d 65 6e 64 20 69 66 0d | 70 75 74 20 69 74 20 69 |.end if.|put it i|
|00005990| 6e 74 6f 20 6e 65 77 42 | 6f 6f 6b 0d 70 75 74 20 |nto newB|ook.put |
|000059a0| 67 65 74 46 69 6c 65 4e | 61 6d 65 28 74 68 65 20 |getFileN|ame(the |
|000059b0| 6c 6f 6e 67 20 6e 61 6d | 65 20 6f 66 20 74 68 69 |long nam|e of thi|
|000059c0| 73 20 73 74 61 63 6b 29 | 20 69 6e 74 6f 20 46 69 |s stack)| into Fi|
|000059d0| 6c 65 4e 61 6d 65 0d 67 | 65 74 20 52 65 73 6f 75 |leName.g|et Resou|
|000059e0| 72 63 65 73 28 46 69 6c | 65 4e 61 6d 65 29 0d 73 |rces(Fil|eName).s|
|000059f0| 6f 72 74 20 69 74 0d 70 | 75 74 20 69 74 20 69 6e |ort it.p|ut it in|
|00005a00| 74 6f 20 72 65 73 4c 69 | 73 74 0d 70 75 74 20 72 |to resLi|st.put r|
|00005a10| 65 74 75 72 6e 20 61 66 | 74 65 72 20 72 65 73 4c |eturn af|ter resL|
|00005a20| 69 73 74 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |ist.repe|at with |
|00005a30| 79 20 3d 20 31 20 74 6f | 20 74 68 65 20 6e 75 6d |y = 1 to| the num|
|00005a40| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 20 6f 66 20 |ber of l|ines of |
|00005a50| 72 65 73 4c 69 73 74 0d | 69 66 20 77 6f 72 64 20 |resList.|if word |
|00005a60| 31 20 6f 66 20 6c 69 6e | 65 20 79 20 6f 66 20 72 |1 of lin|e y of r|
|00005a70| 65 73 4c 69 73 74 20 69 | 73 20 22 50 49 43 54 22 |esList i|s "PICT"|
|00005a80| 20 74 68 65 6e 20 70 75 | 74 20 6c 69 6e 65 20 79 | then pu|t line y|
|00005a90| 20 6f 66 20 72 65 73 4c | 69 73 74 20 26 20 72 65 | of resL|ist & re|
|00005aa0| 74 75 72 6e 20 61 66 74 | 65 72 20 70 69 63 74 4c |turn aft|er pictL|
|00005ab0| 69 73 74 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 69 |ist.end |repeat.i|
|00005ac0| 66 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |f the nu|mber of |
|00005ad0| 6c 69 6e 65 73 20 6f 66 | 20 70 69 63 74 4c 69 73 |lines of| pictLis|
|00005ae0| 74 20 3e 20 30 20 74 68 | 65 6e 0d 61 6e 73 77 65 |t > 0 th|en.answe|
|00005af0| 72 20 22 43 6f 70 79 20 | 50 49 43 54 73 20 66 72 |r "Copy |PICTs fr|
|00005b00| 6f 6d 20 6e 65 77 20 6d | 61 67 61 7a 69 6e 65 3f |om new m|agazine?|
|00005b10| 22 20 77 69 74 68 20 22 | 44 65 6c 65 74 65 22 20 |" with "|Delete" |
|00005b20| 6f 72 20 22 43 6f 70 79 | 22 0d 69 66 20 69 74 20 |or "Copy|".if it |
|00005b30| 69 73 20 22 44 65 6c 65 | 74 65 22 20 74 68 65 6e |is "Dele|te" then|
|00005b40| 0d 70 75 74 20 74 72 75 | 65 20 69 6e 74 6f 20 64 |.put tru|e into d|
|00005b50| 65 6c 50 69 63 74 73 0d | 65 6e 64 20 69 66 0d 65 |elPicts.|end if.e|
|00005b60| 6e 64 20 69 66 0d 70 75 | 74 20 22 43 6f 76 65 72 |nd if.pu|t "Cover|
|00005b70| 2c 48 65 6c 70 2c 54 61 | 62 6c 65 20 6f 66 20 43 |,Help,Ta|ble of C|
|00005b80| 6f 6e 74 65 6e 74 73 22 | 20 69 6e 74 6f 20 70 61 |ontents"| into pa|
|00005b90| 67 65 49 74 65 6d 73 0d | 72 65 70 65 61 74 20 77 |geItems.|repeat w|
|00005ba0| 69 74 68 20 78 20 3d 20 | 31 20 74 6f 20 33 0d 67 |ith x = |1 to 3.g|
|00005bb0| 6f 20 6d 61 73 74 65 72 | 42 6f 6f 6b 0d 67 6f 20 |o master|Book.go |
|00005bc0| 63 64 20 28 69 74 65 6d | 20 78 20 6f 66 20 70 61 |cd (item| x of pa|
|00005bd0| 67 65 49 74 65 6d 73 29 | 0d 64 6f 4d 65 6e 75 20 |geItems)|.doMenu |
|00005be0| 22 43 6f 70 79 20 43 61 | 72 64 22 0d 67 6f 20 6e |"Copy Ca|rd".go n|
|00005bf0| 65 77 42 6f 6f 6b 0d 69 | 66 20 78 20 ad 20 31 20 |ewBook.i|f x . 1 |
|00005c00| 74 68 65 6e 0d 67 6f 20 | 6c 61 73 74 0d 64 6f 4d |then.go |last.doM|
|00005c10| 65 6e 75 20 22 50 61 73 | 74 65 20 43 61 72 64 22 |enu "Pas|te Card"|
|00005c20| 0d 69 66 20 73 68 6f 72 | 74 20 6e 61 6d 65 20 6f |.if shor|t name o|
|00005c30| 66 20 74 68 69 73 20 63 | 64 20 69 73 20 22 54 61 |f this c|d is "Ta|
|00005c40| 62 6c 65 20 6f 66 20 43 | 6f 6e 74 65 6e 74 73 22 |ble of C|ontents"|
|00005c50| 20 74 68 65 6e 0d 70 75 | 74 20 22 22 20 69 6e 74 | then.pu|t "" int|
|00005c60| 6f 20 63 64 20 66 6c 64 | 20 22 54 61 62 6c 65 31 |o cd fld| "Table1|
|00005c70| 22 0d 70 75 74 20 22 22 | 20 69 6e 74 6f 20 63 64 |".put ""| into cd|
|00005c80| 20 66 6c 64 20 22 50 61 | 67 65 31 22 0d 69 66 20 | fld "Pa|ge1".if |
|00005c90| 74 68 65 72 65 20 69 73 | 20 61 20 63 64 20 66 6c |there is| a cd fl|
|00005ca0| 64 20 22 54 61 62 6c 65 | 32 22 20 74 68 65 6e 20 |d "Table|2" then |
|00005cb0| 70 75 74 20 22 22 20 69 | 6e 74 6f 20 63 64 20 66 |put "" i|nto cd f|
|00005cc0| 6c 64 20 22 54 61 62 6c | 65 32 22 0d 69 66 20 74 |ld "Tabl|e2".if t|
|00005cd0| 68 65 72 65 20 69 73 20 | 61 20 63 64 20 66 6c 64 |here is |a cd fld|
|00005ce0| 20 22 50 61 67 65 32 22 | 20 74 68 65 6e 20 70 75 | "Page2"| then pu|
|00005cf0| 74 20 22 22 20 69 6e 74 | 6f 20 63 64 20 66 6c 64 |t "" int|o cd fld|
|00005d00| 20 22 50 61 67 65 32 22 | 0d 70 75 74 20 63 75 72 | "Page2"|.put cur|
|00005d10| 56 65 72 73 69 6f 6e 20 | 69 6e 74 6f 20 66 6c 64 |Version |into fld|
|00005d20| 20 22 56 65 72 73 69 6f | 6e 22 20 6f 66 20 63 64 | "Versio|n" of cd|
|00005d30| 20 22 54 61 62 6c 65 20 | 6f 66 20 43 6f 6e 74 65 | "Table |of Conte|
|00005d40| 6e 74 73 22 0d 65 6e 64 | 20 69 66 0d 65 6c 73 65 |nts".end| if.else|
|00005d50| 0d 70 75 74 20 22 50 61 | 73 74 65 20 6d 61 67 61 |.put "Pa|ste maga|
|00005d60| 7a 69 6e 65 20 63 6f 76 | 65 72 20 6f 6e 20 74 68 |zine cov|er on th|
|00005d70| 69 73 20 70 61 67 65 22 | 20 69 6e 74 6f 20 6c 69 |is page"| into li|
|00005d80| 6e 65 20 36 20 6f 66 20 | 66 6c 64 20 22 42 6f 64 |ne 6 of |fld "Bod|
|00005d90| 79 22 0d 73 65 74 20 74 | 68 65 20 6e 61 6d 65 20 |y".set t|he name |
|00005da0| 6f 66 20 74 68 69 73 20 | 63 64 20 74 6f 20 22 43 |of this |cd to "C|
|00005db0| 6f 76 65 72 22 0d 65 6e | 64 20 69 66 0d 69 66 20 |over".en|d if.if |
|00005dc0| 64 65 6c 50 69 63 74 73 | 20 69 73 20 74 72 75 65 |delPicts| is true|
|00005dd0| 20 74 68 65 6e 20 70 75 | 74 20 65 6d 70 74 79 20 | then pu|t empty |
|00005de0| 69 6e 74 6f 20 66 6c 64 | 20 22 50 69 63 74 54 68 |into fld| "PictTh|
|00005df0| 69 73 50 61 67 65 22 0d | 69 66 20 74 68 65 72 65 |isPage".|if there|
|00005e00| 20 69 73 20 61 20 66 6c | 64 20 22 43 6f 70 79 72 | is a fl|d "Copyr|
|00005e10| 69 67 68 74 22 20 74 68 | 65 6e 20 70 75 74 20 65 |ight" th|en put e|
|00005e20| 6d 70 74 79 20 69 6e 74 | 6f 20 66 6c 64 20 22 43 |mpty int|o fld "C|
|00005e30| 6f 70 79 72 69 67 68 74 | 22 0d 65 6e 64 20 72 65 |opyright|".end re|
|00005e40| 70 65 61 74 0d 67 6f 20 | 6c 61 73 74 0d 64 6f 4d |peat.go |last.doM|
|00005e50| 65 6e 75 20 22 4e 65 77 | 20 43 61 72 64 22 0d 70 |enu "New| Card".p|
|00005e60| 75 74 20 22 41 72 74 69 | 63 6c 65 20 31 22 20 69 |ut "Arti|cle 1" i|
|00005e70| 6e 74 6f 20 66 6c 64 20 | 22 41 72 74 69 63 6c 65 |nto fld |"Article|
|00005e80| 4e 61 6d 65 22 0d 63 72 | 65 61 74 65 43 6f 6e 74 |Name".cr|eateCont|
|00005e90| 65 6e 74 73 0d 67 6f 20 | 63 64 20 31 0d 70 75 74 |ents.go |cd 1.put|
|00005ea0| 20 6e 65 77 42 6f 6f 6b | 20 69 6e 74 6f 20 46 69 | newBook| into Fi|
|00005eb0| 6c 65 4e 61 6d 65 0d 69 | 66 20 64 65 6c 50 69 63 |leName.i|f delPic|
|00005ec0| 74 73 20 69 73 20 74 72 | 75 65 20 74 68 65 6e 0d |ts is tr|ue then.|
|00005ed0| 72 65 70 65 61 74 20 77 | 69 74 68 20 7a 20 3d 20 |repeat w|ith z = |
|00005ee0| 31 20 74 6f 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |1 to the| number |
|00005ef0| 6f 66 20 6c 69 6e 65 73 | 20 6f 66 20 70 69 63 74 |of lines| of pict|
|00005f00| 4c 69 73 74 0d 72 65 6d | 6f 76 65 50 69 63 74 28 |List.rem|ovePict(|
|00005f10| 6c 69 6e 65 20 7a 20 6f | 66 20 70 69 63 74 4c 69 |line z o|f pictLi|
|00005f20| 73 74 29 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 65 |st).end |repeat.e|
|00005f30| 6e 64 20 69 66 0d 64 6f | 4d 65 6e 75 20 22 43 6f |nd if.do|Menu "Co|
|00005f40| 6d 70 61 63 74 20 53 74 | 61 63 6b 22 0d 65 6e 64 |mpact St|ack".end|
|00005f50| 20 63 72 65 61 74 65 42 | 6f 6f 6b 0d 0d 6f 6e 20 | createB|ook..on |
|00005f60| 62 75 74 74 6f 6e 31 0d | 69 66 20 74 6f 6f 6c 73 |button1.|if tools|
|00005f70| 53 74 61 63 6b 28 29 20 | 74 68 65 6e 20 65 78 69 |Stack() |then exi|
|00005f80| 74 20 62 75 74 74 6f 6e | 31 0d 67 6c 6f 62 61 6c |t button|1.global|
|00005f90| 20 74 68 65 54 6f 6f 6c | 0d 70 75 74 20 65 6d 70 | theTool|.put emp|
|00005fa0| 74 79 20 69 6e 74 6f 20 | 74 68 65 54 6f 6f 6c 0d |ty into |theTool.|
|00005fb0| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 62 74 |if there| is a bt|
|00005fc0| 6e 20 22 50 69 63 74 75 | 72 65 22 20 74 68 65 6e |n "Pictu|re" then|
|00005fd0| 0d 69 66 20 74 68 65 20 | 73 74 79 6c 65 20 6f 66 |.if the |style of|
|00005fe0| 20 62 74 6e 20 22 50 69 | 63 74 75 72 65 22 20 69 | btn "Pi|cture" i|
|00005ff0| 73 20 22 52 65 63 74 61 | 6e 67 6c 65 22 20 74 68 |s "Recta|ngle" th|
|00006000| 65 6e 0d 61 6e 73 77 65 | 72 20 22 52 65 66 6c 6f |en.answe|r "Reflo|
|00006010| 77 20 74 65 78 74 3f 22 | 20 77 69 74 68 20 22 43 |w text?"| with "C|
|00006020| 61 6e 63 65 6c 22 20 6f | 72 20 22 4f 4b 22 0d 69 |ancel" o|r "OK".i|
|00006030| 66 20 69 74 20 69 73 20 | 22 4f 4b 22 20 74 68 65 |f it is |"OK" the|
|00006040| 6e 0d 72 65 46 6c 6f 77 | 57 69 74 68 53 74 79 6c |n.reFlow|WithStyl|
|00006050| 65 0d 65 6c 73 65 0d 6c | 6f 63 6b 20 73 63 72 65 |e.else.l|ock scre|
|00006060| 65 6e 0d 73 65 74 20 74 | 68 65 20 73 74 79 6c 65 |en.set t|he style|
|00006070| 20 6f 66 20 62 74 6e 20 | 22 50 69 63 74 75 72 65 | of btn |"Picture|
|00006080| 22 20 74 6f 20 74 72 61 | 6e 73 70 61 72 65 6e 74 |" to tra|nsparent|
|00006090| 0d 73 65 74 20 74 68 65 | 20 73 68 6f 77 4e 61 6d |.set the| showNam|
|000060a0| 65 20 6f 66 20 62 74 6e | 20 22 50 69 63 74 75 72 |e of btn| "Pictur|
|000060b0| 65 22 20 74 6f 20 66 61 | 6c 73 65 0d 75 6e 6c 6f |e" to fa|lse.unlo|
|000060c0| 63 6b 20 73 63 72 65 65 | 6e 0d 65 6e 64 20 69 66 |ck scree|n.end if|
|000060d0| 0d 65 6e 64 20 69 66 0d | 0d 65 6e 64 20 69 66 0d |.end if.|.end if.|
|000060e0| 69 66 20 6e 6f 74 20 74 | 68 65 20 6c 6f 63 6b 54 |if not t|he lockT|
|000060f0| 65 78 74 20 6f 66 20 66 | 6c 64 20 22 42 6f 64 79 |ext of f|ld "Body|
|00006100| 22 20 74 68 65 6e 20 74 | 65 78 74 49 6e 73 65 72 |" then t|extInser|
|00006110| 74 0d 73 65 74 20 74 68 | 65 20 69 63 6f 6e 20 6f |t.set th|e icon o|
|00006120| 66 20 62 67 20 62 74 6e | 20 22 54 68 65 54 6f 6f |f bg btn| "TheToo|
|00006130| 6c 42 74 6e 22 20 74 6f | 20 48 61 6e 64 0d 73 65 |lBtn" to| Hand.se|
|00006140| 74 20 74 68 65 20 63 68 | 65 63 6b 4d 61 72 6b 20 |t the ch|eckMark |
|00006150| 6f 66 20 6d 65 6e 75 49 | 74 65 6d 20 31 20 6f 66 |of menuI|tem 1 of|
|00006160| 20 6d 65 6e 75 20 22 4c | 61 79 6f 75 74 22 20 74 | menu "L|ayout" t|
|00006170| 6f 20 66 61 6c 73 65 0d | 69 66 20 74 68 65 72 65 |o false.|if there|
|00006180| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 28 69 74 | is a wi|ndow (it|
|00006190| 65 6d 20 31 20 6f 66 20 | 66 6c 64 20 22 50 69 63 |em 1 of |fld "Pic|
|000061a0| 74 54 68 69 73 50 61 67 | 65 22 29 20 74 68 65 6e |tThisPag|e") then|
|000061b0| 0d 73 68 6f 77 20 77 69 | 6e 64 6f 77 20 69 74 65 |.show wi|ndow ite|
|000061c0| 6d 20 31 20 6f 66 20 66 | 6c 64 20 22 50 69 63 74 |m 1 of f|ld "Pict|
|000061d0| 54 68 69 73 50 61 67 65 | 22 0d 65 6e 64 20 69 66 |ThisPage|".end if|
|000061e0| 0d 63 68 6f 6f 73 65 20 | 74 68 65 20 62 72 6f 77 |.choose |the brow|
|000061f0| 73 65 20 74 6f 6f 6c 0d | 65 6e 64 20 62 75 74 74 |se tool.|end butt|
|00006200| 6f 6e 31 0d 0d 6f 6e 20 | 62 75 74 74 6f 6e 32 0d |on1..on |button2.|
|00006210| 69 66 20 74 6f 6f 6c 73 | 53 74 61 63 6b 28 29 20 |if tools|Stack() |
|00006220| 74 68 65 6e 20 65 78 69 | 74 20 62 75 74 74 6f 6e |then exi|t button|
|00006230| 32 0d 63 68 6f 6f 73 65 | 20 74 68 65 20 62 72 6f |2.choose| the bro|
|00006240| 77 73 65 20 74 6f 6f 6c | 0d 74 65 78 74 49 6e 73 |wse tool|.textIns|
|00006250| 65 72 74 0d 65 6e 64 20 | 62 75 74 74 6f 6e 32 0d |ert.end |button2.|
|00006260| 0d 6f 6e 20 62 75 74 74 | 6f 6e 33 0d 69 66 20 74 |.on butt|on3.if t|
|00006270| 6f 6f 6c 73 53 74 61 63 | 6b 28 29 20 74 68 65 6e |oolsStac|k() then|
|00006280| 20 65 78 69 74 20 62 75 | 74 74 6f 6e 33 0d 67 6c | exit bu|tton3.gl|
|00006290| 6f 62 61 6c 20 74 68 65 | 54 6f 6f 6c 2c 74 68 65 |obal the|Tool,the|
|000062a0| 4f 6c 64 52 65 63 74 2c | 74 68 65 43 6f 72 6e 65 |OldRect,|theCorne|
|000062b0| 72 0d 69 66 20 6e 6f 74 | 20 74 68 65 20 6c 6f 63 |r.if not| the loc|
|000062c0| 6b 54 65 78 74 20 6f 66 | 20 66 6c 64 20 22 42 6f |kText of| fld "Bo|
|000062d0| 64 79 22 20 74 68 65 6e | 20 74 65 78 74 49 6e 73 |dy" then| textIns|
|000062e0| 65 72 74 0d 70 75 74 20 | 22 70 69 63 74 75 72 65 |ert.put |"picture|
|000062f0| 54 6f 6f 6c 22 20 69 6e | 74 6f 20 74 68 65 54 6f |Tool" in|to theTo|
|00006300| 6f 6c 0d 63 68 6f 6f 73 | 65 20 74 68 65 20 62 72 |ol.choos|e the br|
|00006310| 6f 77 73 65 20 74 6f 6f | 6c 0d 73 65 74 20 74 68 |owse too|l.set th|
|00006320| 65 20 63 68 65 63 6b 4d | 61 72 6b 20 6f 66 20 6d |e checkM|ark of m|
|00006330| 65 6e 75 49 74 65 6d 20 | 31 31 20 6f 66 20 6d 65 |enuItem |11 of me|
|00006340| 6e 75 20 22 4c 61 79 6f | 75 74 22 20 74 6f 20 74 |nu "Layo|ut" to t|
|00006350| 72 75 65 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |rue.if t|here is |
|00006360| 61 20 62 74 6e 20 22 50 | 69 63 74 75 72 65 22 20 |a btn "P|icture" |
|00006370| 74 68 65 6e 0d 69 66 20 | 74 68 65 72 65 20 69 73 |then.if |there is|
|00006380| 20 61 20 77 69 6e 64 6f | 77 20 28 69 74 65 6d 20 | a windo|w (item |
|00006390| 31 20 6f 66 20 66 6c 64 | 20 22 50 69 63 74 54 68 |1 of fld| "PictTh|
|000063a0| 69 73 50 61 67 65 22 29 | 20 74 68 65 6e 0d 68 69 |isPage")| then.hi|
|000063b0| 64 65 20 77 69 6e 64 6f | 77 20 69 74 65 6d 20 31 |de windo|w item 1|
|000063c0| 20 6f 66 20 66 6c 64 20 | 22 50 69 63 74 54 68 69 | of fld |"PictThi|
|000063d0| 73 50 61 67 65 22 0d 65 | 6e 64 20 69 66 0d 6c 6f |sPage".e|nd if.lo|
|000063e0| 63 6b 20 73 63 72 65 65 | 6e 0d 69 66 20 74 68 65 |ck scree|n.if the|
|000063f0| 20 73 74 79 6c 65 20 6f | 66 20 62 74 6e 20 22 50 | style o|f btn "P|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.